Any Data Tag that has a date value, such as [created]
, [publish_up]
, [modified]
, or even custom fields of type calendar
, can be output and have the date format specified.
[publish_up format="F jS Y"]
November 21st 2024
The date format characters that you can use are based on the PHP date function.
You can also use date values inside If Structures, like:
{if created >= '2019-02-15'}...{/if}
And you can even compare dates to the current date using Relative Dates or the now()
value.
{if publish_up > now()}Coming soon{/if}