eo_get_event_archive_date
since 1.7
eo_get_event_archive_date( $format = DATETIMEOBJ )
Returns formatted date of an event archive.
Returns the formatted date of an event archive. E.g. for date archives, returns that date,
for year archives returns 1st January of that year, for month archives 1st of that month.
The date is formatted according to $format
via eo_format_datetime()
<?php
if( eo_is_event_archive('day') )
echo __('Events: ','eventorganiser').' '.eo_get_event_archive_date('jS F Y');
elseif( eo_is_event_archive('month') )
echo __('Events: ','eventorganiser').' '.eo_get_event_archive_date('F Y');
elseif( eo_is_event_archive('year') )
echo __('Events: ','eventorganiser').' '.eo_get_event_archive_date('Y');
else
_e('Events','eventorganiser');
?>
Parameters
Return value
string|\dateTime
|
The formatted date
|
Changelog
Resources