I have a date string that looks like so.
02/12/2005 02:20
the format is dd/mm/yyyy hh:mm
i need to change that string to look like so.
2005-12-02 02:20
the desired format is
yyyy/mm/dd
i tried
strftime("%d-%m-%Y %H:%M", strtotime("02/12/2005 03:08"));
but that seems assume the string "02/12/2005 03:08" is 12 Feb 2005. I need to change that so that the string is read as 02 Dec 2005.
please help.