To be able to search or sort dates Memberkit have to keep them in database format which is hard to read and looks quite ugly. It actually looks like this: 2009-03-16 11:47:11 we want to see it as March 16, 2009 at 11:47 in order to do this you can use {FORMATDATE:dateField} tag.
Some user may not want to see hours in date. They can use {FORMATDATESHORT:dateFiled} tag. This tag will only print March 16, 2009 on screen.
Examples: {FORMATDATE:added} will print entry addition date. {FORMATDATE:updated} will print last entry update date.
To show US dates with am/pm, use this: <? print date('F j, Y, g:i a', strtotime(get_tag($values, "dateField"))); ?>
Tags:
template tags
Related Articles:
Add a new comment
|
Send Comment