I'm using the PODS WordPress Framework which is amazing.
I created a template with one of the fields publishing the date of an event which is done through a simple 'magic tag' like this
{@date_of_event}
This publishes the date in this format: September, 15th 2018
What I need to do is change the format of the date being published into a numeric version which I can do by passing the value into my own function.
That would be done like this:
{@start_date,MY_FUNCTION}
So, to do this I need to create a function in my functions.php file like this:
function MY_FUNCTION ($input) {
return "New Input" . $input;
}
Now, the php time date format that I need is like this:
Y/m/d
So - my question - how do I insert this into the function above?
Thanks for all help and direction on this!