Forum Discussion
Hi Chris
I tried what you mentioned in your comment, however I dont get the expected result, its not able to distinguish between AM and PM and gives same result for both
$dt = 11/12/2019 11:15:00 PM
expected output is 2019-11-12 23:15:00
Hi Chris,
Thanks for your inputs, I was able to achieve this by using the expression below,
Date.parse($dt,‘MM/dd/yyyy h:m:s a’).toLocaleDateTimeString({“format”:“yyyy-MM-dd HH:mm:ss”})
Regards
Anubhav
Thank you, I solved it before the reply and I came to say it's done. I didn't know much about APIs and now I understand that I should've gone through the documentation first to understand how I can handle the data. I solved it by adding a query parameter like in the picture.
Also, thank you for suggesting the training workshop. Have a good weekend!
Related Content
- 4 years ago