3 Replies Latest reply on Mar 4, 2015 12:51 PM by JamesHaney

    How do you convert an event timestamp to an XMP formatted date?

    JamesHaney Level 1

      In an event listener you can query for the current time:

       

      var myTimeStamp = myEvent.timeStamp

      Which gives you

      Tue Mar 03 2015 22:11:23 GMT-0600

       

      However to write this to an XMP date field you need to convert it to an iso8601 Date

      A string containing a date-time in ISO 8601 format; for example:

      "2007-04-10T17:54:50+01:00"

       

      Is there any clear cut way to do this?

       

      James Haney