Converting time/date from XML file into MYSQL format

Posted by IconicDigital on Stack Overflow See other posts from Stack Overflow or by IconicDigital
Published on 2012-10-15T09:30:52Z Indexed on 2012/10/15 9:37 UTC
Read the original article Hit count: 214

Filed under:
|
|
|

One of the affiliate networks provides a feed with the following time/date format.

<startDate>1349992800000</startDate>
<endDate>1355266799999</endDate>

My problem is I am trying to convert this to a MYSQL format, I have tried mktime and strtotime with no luck the date seems to come out wrong. I know this is the time since the Equinox, I am just not sure how to convert this to a MYSQL format.

© Stack Overflow or respective owner

Related posts about php

Related posts about mysql