web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Converting unix time s...
Power Automate
Unanswered

Converting unix time stamp to date and time?

(0) ShareShare
ReportReport
Posted on by 69

Hi,

Has anyone figured out a solution for this one? I need to convert a unix time stamp to UTC.

Thanks,
M

Categories:
I have the same question (0)
  • Verified answer
    DamoBird365 Profile Picture
    8,942 Microsoft Employee on at

    Hi @MarkH1 

     

    Suggestion here https://powerusers.microsoft.com/t5/Building-Flows/Got-a-recipe-for-converting-a-unix-timestamp-to-a-utc-date/td-p/137246 is to use the following:

     

    addseconds('1970-1-1', Div(timestamp,1000) , 'yyyy-MM-dd')

     

    Learn something new every day... https://en.wikipedia.org/wiki/Unix_time

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
    Cheers,
    Damien


    P.S. take a look at my new blog here

  • eliotcole Profile Picture
    4,363 Moderator on at

    I know this is old, but if anyone is just copy/pasting ... then ensuring that 'timestamp' (your source) is surrounded by an int() function cannot hurt any ...

     

    However, I get more accurate results with the following (from here), @DamoBird365 ... am I going crazy?

     

    addseconds('1970-1-1', int(UNIX_TIMESTAMP) , 'yyyy-MM-dd')

     

    TBF - It probably depends on the type of UNIX timestamp. (sec/mili/micro)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard