Outputting wordpress custom date field in different format
Okay, so I have a custom date field set up as 'm/d/Y H:i:s' and I开发者_运维问答'd like to echo that as 'M j'. How do I do this?
if it stored in the format m/d/Y H:i:s, then you can do this wherever the date is echoed in your template:
echo date('M j',strtotime($custom_date));
精彩评论