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 / Date format issues - G...
Power Apps
Unanswered

Date format issues - German vs English

(0) ShareShare
ReportReport
Posted on by 230

Hi folks

I'd like to work with dates in german format, i.e. dd.mm.yyyy. When the user works with a browser in german all works well. However, 

when the user uses an english browser, days and months are swapped.

For example, I've got a gallery where you can go to a detail screen and modify a selected record. This detail screen has a date picker where the item's date is preselected (see attachments). Here, in english the example record is from 9th October where in german it's 10th September. And the format is clearly set to "[$-de-DE]dd.mm.yyyy"

Any ideas?

 

Categories:
I have the same question (0)
  • RandyHayes Profile Picture
    76,297 Super User 2024 Season 1 on at

    @TJO 

    Consider the following changes:

    Set your Language property of the DatePicker to "de-DE".

    Then change your DefaultDate to the following: DateAdd(Parent.Default, TimeZoneOffset(), Minutes)

    Set your Format property to ShortDate

     

    That should give you a consistent DatePicker with the language you want.

     

    I hope this is helpful for you.

  • TJO Profile Picture
    230 on at

    @RandyHayes Thank you, but that doesn't work. Setting the language property to  "de-DE" leads to an error.
    I've solved it by removing the format of the default date. However, I'm sure there will be issues coming again depending on the users settings.

    Meanwhile, I've spent way too many hours on date time issues; I really hope that microsoft will straighten their **** out.

     

    For example, for reasons unknown, users added records from 2022!? And it's quite unlikey that someone accidentally goes into a date picker clicks forward to 2022

  • RandyHayes Profile Picture
    76,297 Super User 2024 Season 1 on at

    @TJO 

    What kind of error did you see setting the Language property?  I checked that one out in a sample app before posting just to make sure you had a good answer.

  • TJO Profile Picture
    230 on at

    ..below

     

     

     

  • TJO Profile Picture
    230 on at

    @RandyHayes Thank you. My bad. Indeed, there's no error but the date picker seems rogue lol 🙂

  • RandyHayes Profile Picture
    76,297 Super User 2024 Season 1 on at

    @TJO 

    Yes, you have "de-DE" in your format...you want to put ShortDate in that.

     

    Set your Language property of the DatePicker to "de-DE".

    Then change your DefaultDate to the following: DateAdd(Parent.Default, TimeZoneOffset(), Minutes)

    Set your Format property to ShortDate

     

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 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard