Display start date and end date
-
Hi!
I’ve shown the start date and end date by replacing one of the following code into the “<li class =” date “>” in the file “content_job_listing.php”:
<? php echo ($ start = get_post_meta ($ Post-> ID, ‘_start_date’, true))? date_i18n (get_option (‘DATE_FORMAT’), strtotime ($ start)): ‘& ndash;’; ?>
–
<? php echo ($ end = get_post_meta ($ Post-> ID, ‘_end_date’, true))? date_i18n (get_option (‘DATE_FORMAT’), strtotime ($ end)): ‘& ndash;’; ?>Results: July 25, 2015 – June 29, 2015
But I want it displayed in another format, for example: 1st – 3st of July, I have to do like? I am very grateful if anyone can help me do it!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Display start date and end date’ is closed to new replies.