web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / DateTimeValue conversi...
Power Apps
Answered

DateTimeValue conversion seems to add one year

(0) ShareShare
ReportReport
Posted on by 113

Hello,

to create a time line, I need to create a time field in an collection.

Based on the date of a variable, I create the first part of that field. But the conversion adds one year to that date... But only on my PC (which is set to english) and it works correctly on my mobiles (which are set to german). I assume there is something with the conversion of locals... but I am a bit confused and may don't see the forest because the immense amount of trees...

Following the code with current values:

Bildschirmfoto 2022-04-25 um 08.23.37.pngBildschirmfoto 2022-04-25 um 08.24.00.png

Anybody recognising an issue with my code, why this happens?

Thanks!

 

Categories:
  • Verified answer
    ArminSimon Profile Picture
    113 on at

    Hi,

    solved it by my own finally... 

    As I mentioned: haven't seen the forest...

    It just missed the 'locale' parameter of the DateTimeValue - function

    Bildschirmfoto 2022-04-26 um 09.18.10.png

     

    Just to close the issue.

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 395 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 260 Most Valuable Professional

Last 30 days Overall leaderboard