/** * the_latest_event_date - latest date chronologically * * @access public * @param string $dt_frmt * @param string $tm_frmt * @param int $EVT_ID * @return string */ public static function the_latest_event_date($dt_frmt = 'D M jS', $tm_frmt = 'g:i a', $EVT_ID = 0) { $datetime = EEH_Event_View::get_last_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_end', $format) : ''; }
/** * the_latest_event_date - latest date chronologically * * @access public * @param string $dt_frmt * @param string $tm_frmt * @param int $EVT_ID * @return string */ public static function the_latest_event_date($dt_frmt = 'D M jS', $tm_frmt = 'g:i a', $EVT_ID = 0) { $datetime = EEH_Event_View::get_last_date_obj($EVT_ID); return $datetime instanceof EE_Datetime ? $datetime->end_date_and_time($dt_frmt, $tm_frmt) : ''; }
/** * the_event_end_date * * @access public * @return string */ public static function the_event_end_date($dt_frmt = 'D M jS', $tm_frmt = 'g:i a', $EVT_ID = FALSE) { if ($datetime = EEH_Event_View::get_last_date_obj($EVT_ID)) { return $datetime->end_date_and_time($dt_frmt, $tm_frmt); } }