Remove the month and year from a WordPress Date?
Question
So, I am wondering if there is a way that I can make this:
February 28th, 2020
Just output NO month and NO year so just 28th (i.e. just the date)
What approach would you take?
I am applying this to a WordPress plugin called Pods.
The plugin allows for Custom Fields to be printed like this:
{@date}
And I know that you can run a PHP command from the functions file like this:
{@date,remove_month}
But figuring how to do that is tricky…any pointers?
0
date, functions
4 years
2020-02-28T08:38:19-05:00
2020-02-28T08:38:19-05:00 0 Answers
61 views
0
Leave an answer