How to convert current date time into epoch time (Unix Time)

Hi,

Can any one tell me how to convert current date time into epoch time (Unix Time) in studio

Thanks

1 Like

Hi,

Can you try the following?

new DateTimeOffset(Now,New TimeSpan(utcOffset,0,0)).ToUnixTimeSeconds

Note: utcOffset is time offset from UTC. It will be between -12 and 12.

Regards,

1 Like

Hi,

Can you check the following sample?

Sequence.xaml (5.1 KB)

Regards,

@sybasha,

Check the attached workflow, it may help you.
DateTimeToUnixFormat.xaml (5.9 KB)

3 Likes

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.