cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
GarryPope
Impactful Individual
Impactful Individual

Date Picker defaulting to US format for UK users

Hello Power Platform Community,

I hope you can help please. 

 

I've created a canvas app in Dataverse for Teams.

I have a "Date and Time" column which I am displaying on a Form.

For UK users, the date is showing as the US format. So for the 31st December 2021 it shows as 12/31/2021 rather than 31/12/2021.

 

Why is it showing UK people the US format? And how can I change it to show the correct format to whoever is looking at it, such as UK DD/MM/YYYY and US MM/DD/YYYY.

 

Note: Just for reference, to make things more complicated, on the datacard for the Date Picker in the Default property I've added the below expression. So when a new form is opened the date and time show as the last day of the previous month and the time as the last minute. So if you used the form in June the actual date will populate as 31st May 2021 at 23:59. 

 

If(
    frmMetrics.Mode = New,
    Text(
            Date(
                     Year(Now()),
                     Month(Now()),
                    0
            ),
            "yyyy-mm-ddT23:59"
       ),
 ThisItem.'Metrics Year Month'
)

 

NOTE: This issue was happening previous to me adding the expression. But just wanted to mention it. 

 

Any help would be greatly appreciated.

Garry

2 REPLIES 2
RandyHayes
Super User
Super User

@GarryPope 

Consider setting the Language property of the datepicker to Language()

This should put it into the proper mode each time.

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!
GarryPope
Impactful Individual
Impactful Individual

Hello @RandyHayes,

Thanks so much for the reply. I checked both the "Data Card" and the "Data Card Value", and neither of them have a "Language" Property.

 

GarryPope_3-1623831678039.png

 

 

GarryPope_2-1623831657001.png

 

 

Any thoughts please?

Thanks very much,

Garry

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

secondImage

Power Apps Community Call

Please join us on Wednesday, October 20th, at 8a PDT. Come and learn from our amazing speakers!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (1,590)