I have a database where I save time as time()
from php, which is seconds since 1 jan 1970
.
Is there any way I can convert, for example 2012-12-12
to seconds since 1 jan 1970
?
I want to do like:
SELECT *
FROM Table
WHERE date > '2012-11-30' AND date < '2012-12-30'
Is this even possible?
(I would like to do it without any php date())