In MySQL:
select UNIX_TIMESTAMP('2009-12-08 21:01:33') ;
I need to get the value from PHP.
echo time();
or
echo strtotime('now');
strtotime
will:
Parse about any English textual datetime description into a Unix timestamp
So you might just try:
echo strtotime('2009-12-08 21:01:33');
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With