Skip to Content
0
Jul 01, 2020 at 10:24 AM

How to use pluck with formatDate in sap Conversational AI

250 Views

On the response of on API request we are using pluck function on Due date

{{pluck api_service_response.default.body.d.results "DueDate"}}

and we are getting the output as

/Date(1537488000000)/,/Date(1449532800000)/,/Date(1449532800000)/

How to change this date format to human readable format, currently i am using

{{pluck (formatDate api_service_response.default.body.d.results 'DD-MM-YYYY') "DueDate"}}

and getting invalid date error, can you please guide me on how to make it right

Thanks

Kishore