How can i take a date and time such as '2003-01-01 9:00:00' and turn that date and time into a timestamp?
My problem is, I have a database full of data, each result has a date and time at which that result Expires.
I need to be able to display the time left of each result in the database.
I can't seem to turn the time and date into a timestamp.
the reason i need the date and time made into a timestamp is so that i can break the time left down into days, hours, minutes and seconds.
I have tried the following, but i just end up with 1969-12-31 00:00:00.
// overdue timestamp
$otstamp = strtotime('Y-m-d', $overdue_time);
I would greatly appreciate any help!
thank-you