I wish it was in ISO8601 standard e.g. "2019-06-18T05:40Z".
Below is what I did using Flow.
First get the integer part of the string by using the replace function.
Function: int(replace(replace('/Date(1560839609000)/','/Date(',''), ')/', ''))
Output: 1560839609000
To format into date.
Function: addseconds('1970-1-1', Div(1560839609000,1000) , 'yyyy-MM-dd')
Output: 2019-06-18
To format into datetime.
Function: addseconds('1970-1-1', Div(1560839609000,1000) , 'yyyy-MM-dd hh:mm:ss')
Output: 2019-06-18 06:33:29
Using an online converter I am able to validate my output.
https://www.epochconverter.com/
![](https://lh6.googleusercontent.com/KGk6XWR2jYp-o6_BnR2WkSCzgoRvt8pheZzqkXpnugYqBcz3zX7E9xVGq8Mj0nQ1sQkzizE3DE-l9zzNYp2jb9YieLM8yafBLs_SUHURyKCyfgcDmnSnVd1pnw-OLoRr5qJpQlPw)
After that, you can use the Date Time string to or formatDateTime function.
![](https://lh4.googleusercontent.com/qB2V8YjQN67uxzdl9LW6vcxJM7GHKo5YsfbXnrCbhZspReaovvVuvvrinE-YFe7Reo27AgoYmk_nvKGtVFTErEelAb3kHvKL72v6DRNk5Qe7nB4vN_glkEc8ifhGUuIWS817ut1d)
For the developers out there. Newtonsoft is great for working with dates and supports both formats. Have a look at this link for a bit more info.
https://www.newtonsoft.com/json/help/html/DatesInJSON.htm
If you have a better way of handling dates. Please let me know.
First get the integer part of the string by using the replace function.
Function: int(replace(replace('/Date(1560839609000)/','/Date(',''), ')/', ''))
Output: 1560839609000
To format into date.
Function: addseconds('1970-1-1', Div(1560839609000,1000) , 'yyyy-MM-dd')
Output: 2019-06-18
To format into datetime.
Function: addseconds('1970-1-1', Div(1560839609000,1000) , 'yyyy-MM-dd hh:mm:ss')
Output: 2019-06-18 06:33:29
Using an online converter I am able to validate my output.
https://www.epochconverter.com/
After that, you can use the Date Time string to or formatDateTime function.
For the developers out there. Newtonsoft is great for working with dates and supports both formats. Have a look at this link for a bit more info.
https://www.newtonsoft.com/json/help/html/DatesInJSON.htm
If you have a better way of handling dates. Please let me know.
*This post is locked for comments