I need to store a specific time format in sql so I can ORDER BY later . The format that I have is YYYY-MM-DDTHH:MM:SS.SSSZ (e.g., 2004-08-04T19:09:02.768Z) which doesn’t seem to be neither unix time or mysql date format . I’m using PHP get the time from a webservice which provides it in this format .
Share
strtotimecan parse that datetime string into a timestamp, which you can then format as desired.