cancel
Showing results for 
Search instead for 
Did you mean: 

Milliseconds to Date

gaurav_sandil
New Contributor III

Hi ,

I want to convert Milliseconds to Date.
For instance If I give 1540456849550 then it should give me the date like Thu 25 October 2018 14:10:49

Thanks,
Gaurav Sandil

6 REPLIES 6

akelpe
Former Employee

You can use Date.parse(millis) for that. You can read more about that here: https://docs-snaplogic.atlassian.net/wiki/spaces/SD/pages/1439344/Date+Functions+and+Properties#Date...

gaurav_sandil
New Contributor III

Thanks a lot for your quick response.

rvsrinivasrao
Employee
Employee

Hi Gaurav,

Please find the attached pipeline to achieve Milliseconds to Date conversion in the specified format.

Regards,
Srinivas.

Milliseconds to Date_2018_10_30.slp (4.8 KB)

Thanks a lot Srinivas. Its really helpful.