Alex Rivera | Logout

datetime to timestamp

Asked 2011-06-03T09:21:51.257
35

Possible Duplicates:
Inverse date function? - not strtotime
Is it possible to get UNIX time from such date 2011-02-27 02:04:46?

hello,

we have this function to convert a timestamp to datetime:

$datetime = date('Y-m-d H:i:s', $timestamp);

is there a function to do the opposite?

datetime to timestamp.

Thanks

Edit
Report

1 Answer

8
$timestamp = strtotime('12-04-2010');
answered 2011-06-03T09:27:48.857

Your Answer