/** * the_earliest_event_date - first date chronologically * * @access public * @param string $dt_frmt * @param string $tm_frmt * @param int $EVT_ID * @return string */ public static function the_earliest_event_date($dt_frmt = 'D M jS', $tm_frmt = 'g:i a', $EVT_ID = 0) { $datetime = EEH_Event_View::get_earliest_date_obj($EVT_ID); return $datetime instanceof EE_Datetime ? $datetime->start_date_and_time($dt_frmt, $tm_frmt) : ''; }
/** * the_earliest_event_date - first date chronologically * * @access public * @param string $dt_frmt * @param string $tm_frmt * @param int $EVT_ID * @return string */ public static function the_earliest_event_date($dt_frmt = 'D M jS', $tm_frmt = 'g:i a', $EVT_ID = 0) { $datetime = EEH_Event_View::get_earliest_date_obj($EVT_ID); $format = !empty($dt_frmt) && !empty($tm_frmt) ? $dt_frmt . ' ' . $tm_frmt : $dt_frmt . $tm_frmt; return $datetime instanceof EE_Datetime ? $datetime->get_i18n_datetime('DTT_EVT_start', $format) : ''; }