views:

24

answers:

2

Possible Duplicate:
convert any date string to timestamp without timezone

I have a string that looks like this and want a php timestamp format. I can ask client to change format of the string if necessary.

2010/08/11 06:33:00

A: 
echo strtotime('2010/08/11 06:33:00');
BoltClock
A: 

Use strtotime:

$date = date('Y/m/d H:i:s', strtotime('2010/08/11 06:33:00'));
fredley