I have dates in the format Y-M-D hour-minute-second 2013-09-03 12:10:28
, but I need the unixtimestamp.
PHP has a slough of functions for transforming dates and times, but apprently none that can accept a date and its format and convert it into unixtime. The closest function I found was mktime()
, but I would need to parse my current date into each of its components. Is there an easier way?