Skip to main content

Notifications

Power Platform Community / Forums / Building Power Apps / DateTimeZone.UTC for a...
Building Power Apps
Unanswered

DateTimeZone.UTC for a DatePicker Control is returning misleading/wring date

Posted on by 1,106
I have a Form inside Power Apps canvas >> and i have a date field named Start >> and i set the DateTimeZone to be DateTimeZone.UTC , as follow:-
 
 
 
now currently i have this regional setting  (UTC+3) for a user account:-
 
 
so now when i select 15/09/2024 inside the DatePicker (as shown in the first picture)>> i would assume that the generated datetime will be 14/09/2024 21:00:00 since i am 3 hour in advance to UTC, but the datetime will be 14/09/2024 03:00:00 ,as follow:-
 
 
so how i can fix this wrong date? at the end i need to send this date to power automate in UTC format/time-zone? how i can fix this? so if i select 15/09/2024 inside the calendar i want to get 14/09/2024 21:00:00 which is the UTC of the UTC+3 (my regional time zone)
  • johnjohnPter Profile Picture
    johnjohnPter 1,106 on at
    DateTimeZone.UTC for a DatePicker Control is returning misleading/wring date
    ok moved Thanks
  • Nived_Nambiar Profile Picture
    Nived_Nambiar 15,869 on at
    DateTimeZone.UTC for a DatePicker Control is returning misleading/wring date
    Hi,
     
    Since this is a question related to power apps, I recommend to post in Power Apps forum.
     
    Thanks & Regards,
    Nived N 
    LinkedIn: Nived N's LinkedIn
    YouTube: Nived N's YouTube Channel
    Blog: Nived Nambiar's Blogs
     Found my answer helpful? Please consider marking it as the solution!
     Your appreciation keeps me motivated. Thank you!

     

Helpful resources

Quick Links

Welcome to the Power Platform…

We are thrilled to unveil the newly-launched Power Platform Communities!…

Community Update Sept 16…

Power Platform Community Update…

Welcome to the new Power Platform Community!…

We are excited to announce our new Copilot Cookbook Gallery in the Community…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 140,719

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 63,355

Leaderboard