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 / unix time to GMT in po...
Power Automate
Unanswered

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

 

Categories:
I have the same question (0)
  • Verified answer
    wqdqdqqwdwq Profile Picture
    29 on at

    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

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