I use the following code to convert a date field taken from a postgres DB into a nice readable format. I'm unsure however of how to reverse it. The date to string conversion code is:
$start = date("d/m/Y",strtotime($arr["start"]));
So i need to convert a string in the DD/MM/YYYY format into a date field, i tried using
$start = strtotime($start);
But that seems to fail. If i do no changes to the string the days and months get mixed up
Any help would be very much appreciated.
Thanks,
Matt