2012-03-14 17:22:31.809I was unable to find how to format this particular date, since nearly all documentation of dates gives an example of a time without milliseconds. The API documentation states:
u Decimal fraction of a second
Examples: (minimum 1 digit, arbitrary number of digits allowed) 001 (i.e. 0.001s) or 100 (i.e. 0.100s) or 99 (i.e. 0.999s) or 999876543210 (i.e. 0.999876543210s)Nope, this didn't work.
After searching around and trying nearly every letter in the alphabet, it turns out that you need to use ms for milliseconds. Your Date format should look like this:
Y-m-d H:i:s.msHope this helps someone else!!
No comments:
Post a Comment