We recommend switching to the latest versions of Edge, Firefox, Chrome or Safari. Using Internet Explorer will result in a loss of website functionality.

REST API timestamp format

Comments

3 comments

  • Avatar
    Gerard Cafaro

    It looks like the milliseconds (.###) are missing from your format. Here's a sample of one of mine, taken from the REST API article:

    2019-05-03T14:00:00.001-05:00
    0
    Comment actions Permalink
  • Avatar
    Brian Butters

    JL, Gerards example is essentially correct, but it is milliseconds that was missing, not seconds. Technicaly, the system is using the following Java SimpleDateFormat for timestamp parsing: "yyyy-MM-dd'T'HH:mm:ss.SSSXXX". The .SSS part is milliseconds, and .000 would be appropriate for situations where you don't have millisecond level values to provide.

    0
    Comment actions Permalink
  • Avatar
    Gerard Cafaro

    Updated my comment to correct the typo noted above - thanks! 

    0
    Comment actions Permalink

Please sign in to leave a comment.