PHP Convert formatted date into unixtime -
this question has answer here:
- how convert date timestamp in php? 18 answers
i have dates in format y-m-d hour-minute-second 2013-09-03 12:10:28
, need unixtimestamp.
php has slough of functions transforming dates , times, apprently none can accept date , format , convert unixtime. closest function found mktime()
, need parse current date each of components. there easier way?
strtotime('2013-09-03 12:10:28');
Comments
Post a Comment