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 Apps / Setting variable to ti...
Power Apps
Answered

Setting variable to time and date seem incorrect

(0) ShareShare
ReportReport
Posted on by 240

Hi Team

 

I have this variable for both date and time, date is correct in terms of format. but what i notice, im in SA local time now is 13:49pm, but its behind 11:49am i am using this variable format on power flow to trigger email, but on the email is giving me that incorrect time. How can i change this but still using the variable? 

 

formatDateTime( trigger()?['outputs']?['headers']?['x-ms-user-timestamp'],'yyyy/MM/dd HH:mm:ss')

Categories:
I have the same question (0)
  • Verified answer
    mmbr1606 Profile Picture
    14,605 Super User 2025 Season 2 on at

    hey @gcizman2024 

     

    can you try this please:

    For your specific case, assuming the original timestamp is in UTC (you might need to adjust this if the source time zone is different), the expression would look like this:

    formatDateTime(convertTimeZone(trigger()?['outputs']?['headers']?['x-ms-user-timestamp'], 'UTC', 'South Africa Standard Time'), 'yyyy/MM/dd HH:mm:ss')
    

     

    Let me know if my answer helped solving your issue.

    If it did please accept as solution and give it a thumbs up so we can help others in the community.



    Greetings

     

  • Verified answer
    gcizman2024 Profile Picture
    240 on at

    @mmbr1606  splendid, the time is correct as well date thanks mate

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard