PHP timestamp
PHP timestamp
I need to convert "09.Feb.2014 - 05:27 pm" to a timestamp to get the days since. Is there Any way to do this?
Just follow your arrow wherever it points
Re: PHP timestamp
I believe what your looking for is the function "strtotime()"
- Jackolantern
- Posts: 10891
- Joined: Wed Jul 01, 2009 11:00 pm
Re: PHP timestamp
You may have to do some string manipulation to get it in an acceptable format. That is kind of a strange format there for PHP datetimes.
The indelible lord of tl;dr
- KyleMassacre
- Posts: 573
- Joined: Wed Nov 27, 2013 12:42 pm
Re: PHP timestamp
Take a look at this comment from the manual
http://php.net/manual/en/function.strtotime.php#100144
http://php.net/manual/en/function.strtotime.php#100144