format date
Posted: Tue Mar 13, 2007 11:08 pm
Hello all
I have timestamp field in a table
when I print this value (called $time) as:
echo $time;
I have:
2007-03-13 17:05:07.768449+13
Now I want to display this as:
13-03-07 17:05:07
I tried:
echo date('d-m-y H:i:s', strtotime($time));
It shows
01-01-70 11:59:59
What is wrong here
Please help
Many thanks
Regards
sh
I have timestamp field in a table
when I print this value (called $time) as:
echo $time;
I have:
2007-03-13 17:05:07.768449+13
Now I want to display this as:
13-03-07 17:05:07
I tried:
echo date('d-m-y H:i:s', strtotime($time));
It shows
01-01-70 11:59:59
What is wrong here
Please help
Many thanks
Regards
sh