When I use the ticket.createdAt client option to find the date/time a ticket was created at it returns me a non ISO 8601 standard date/time, for example -
var createdTime = data['ticket.createdAt'];
returns something like -
Thu Sep 05 2019 15:18:35 GMT+0100 (British Summer Time)
We use momentJS to calculate the length of time between a ticket being opened and another event, momentJS does not recognise this as an ISO 8601 standard date/time format.
Is there another way to get the ticket created time or a way of changing the format of the output?
Please sign in to leave a comment.