Changing the date format
-
I’m using the Modern Events Calendar Lite (MEC). When I display an MEC event date using [field mec_start_date], it displays as: 2021-10-21.
How can I get this to display just the year. I tried [field mec_start_date format=Y] but it is unchanged.
Ultimately, I want to calculate and display an anniversary using the math module, to show how many years it has been since the year 2000. eg.
Number of years ago is: [calc] [field mec_start_date format=Y] – 2000[/calc] to show: 21 years.
Any pointers?
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘Changing the date format’ is closed to new replies.