how do i parse a timestamp?
this is what i tried and it just echoed the timestamp
$format = '%d/%m/%Y %H:%M:%S'; $time = date("08032007182234519",$format); echo $time;
EDIT: never mind i figured it out i should have used the strftime function.
First, you've got the format and the timestamp back to front. Second, either the format is wrong or you meant to use [man]strftime[/man] instead of [man]date[/man]. Third, that's not a valid timestamp. (As I write this the current time is only 1173487451). Where are you getting that string from and can't you get it in a different format (it doesn't even look like a MySQL timestamp)?