Thanks for the responses but I have already tried Date before posting.
I tried Date using
$TS = "2009-12-09T14:32:47+00:00";
echo Date("d/m/Y",$TS);
and got
Notice: A non well formed numeric value encountered in C:\fi\dt.php on line 2
01/01/1970
I have tried other variations but could not get a proper date.
I looked at the MySQL link but this does not help, I would like 2 separate date/time variables to be produced from the original date entry before insertion into the db so I can work with the dates elsewhere in the app.
ie. Date = 2009-12-09 and Time 14:32:47
I have also tried using substr($TS, 0, 10); to get the date but this is not always going to be accurate if say the leading zeros are not present and I could then get a string of 2009-12-9T which of course would fail being a date.
I was hoping that there would be a date function I could just chuck the $TS at and get out separate date and separate time.