1.2 and need to convert a date from dd/mm/yyyy
to yyyy-mm-dd
For example if the date is in format 07/08/2014
, it should appear as 2014-08-07
How can this be done? I know strtotime
returns unix timestamp but it doesn't seem to work with dates with Slashes (/) in it. SInce I'm using 5.1, a lot of DateTime
functions are not supported in it.
Please help.