Skip to main content
Community site session details

Community site session details

Session Id :
Power Apps - Building 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:
  • Verified answer
    gcizman2024 Profile Picture
    240 on at
    Re: Setting variable to time and date seem incorrect

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

  • Verified answer
    mmbr1606 Profile Picture
    13,193 Super User 2025 Season 1 on at
    Re: Setting variable to time and date seem incorrect

    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

     

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 1