How do I display my entry post date, formated as "May 24, 2015"?

I know this is a very basic question, but I can never find these easy answers in either the Craft or Twig documentation.

1 Answer 1

{{ entry.postDate | date("M d, Y") }}

Inside the date filter, you use the date formatting values documented in the PHP date() documentation.

Also, see Craft's DateTime documentation, and the Twig date() filter documentation for more information on the topic.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.