Skip to Content
0
Sep 21, 2020 at 03:16 PM

formatDate pattern

68 Views

Hi colleagues,

From the chatbot, I need to pass the message timestamp to the client's service. The timestamp has the following format: 2020-09-21T15:03:31.018582+00:00

The format the client expects is 2020-09-21T10:04:14.702Z or \/Date(1600682606267)\/.

I have tried to use the formatDate with the patterns as specified at the Dates section from https://help.sap.com/doc/9b639cad3d734675971ab22ed10bbf28/latest/en-US/UserGuideToConceptsOfSAPConversationalAI.pdf but I didn't suceed to get one of the formats the client expects.

Is it possible to format the timestamp like this?