I have a custom field to store the date of games, and I store it in database like
mm/dd/yyyy
Now I need to convert all dates to
dd/mm/yyyy
So how can do that?
Is timestamp a solution for it, if yes, how can do that
I need to change all old data to new data for 200 posts
yyyy/mm/dd
date()
in conjunction withstrtotime()
. Click$new_date = date('d/m/Y', strtotime($old_time));
, where$old_time
is the value of your date from where ever you are pulling it from (database I presume).