Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Answered

unix time to GMT in power automate

(0) ShareShare
ReportReport
Posted on by 29

I have an API which gives output in epoch time, I have to convert this into GMT including hours, minutes and second, so far I am able to convert into a date using below expression:

 

 

addDays(formatdatetime('1970-1-1','yyyy-MM-dd'),int(div(variables('epoch'),86400)))

 

 

where epoch is variable storing epoch time.

 

I am looking output with date and time. Appreciate your help.

 

TIA

Arjun

 

  • Verified answer
    wqdqdqqwdwq Profile Picture
    29 on at
    Re: unix time to GMT in power automate

    figured out, here if the expression for other's help:

     

    formatDateTime(addSeconds(addDays(formatdatetime('1970-1-1','yyyy-MM-dd'),int(div(variables('epoch'),86400))),mod(variables('epoch'),86400)),'dd/MM/yyyy hh:mm tt')

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,668 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,004 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow