How to Separate the 'date' from the 'time'
-
How can i separate the date from the time of the event ?
in a standard install the event time is shown as below on single posts –
Start: 22 October 2015 4:30 pm
and like this on an archive –
24 October 2015 1:00 am
It doesn’t show a start and end time (if there is one) , only shows the start time. I’d like to insert an @ before the ‘time’ or ‘starting at’ or whatever.
i cant find a way to separate the event time from the code below –
//Format date/time according to whether its an all day event. //Use microdata https://support.google.com/webmasters/bin/answer.py?hl=en&answer=176035 if( eo_is_all_day() ){ $format = 'd F Y'; $microformat = 'Y-m-d'; }else{ $format = 'd F Y '.get_option('time_format'); $microformat = 'c'; }?> <time itemprop="startDate" datetime="<?php eo_the_start($microformat); ?>"><?php eo_the_start($format); ?></time>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘How to Separate the 'date' from the 'time'’ is closed to new replies.