cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
paNewby
Helper III
Helper III

How do I get my dataform to display dates in DD/MM/YYYY format?

I have set my computer Region/Date to Australia DD/MM/YYYY format. I have set Sharepoint region to the same so my Sharepoint list displays in that format. I have created a PowerApp that insists on displaying dates in MM/DD/YYYY format. How do I change it?

1 ACCEPTED SOLUTION

Accepted Solutions
AlexKeil
Advocate II
Advocate II

Okay so i found a way to do this, if you change the 'format' property from something like 'DateTimeFormat.ShortDate' to just "dd/mm/yyyy" it will change it. I found that even when using TEXT(<field>, "dd/mm/yyyy") if the format property shows shortdate, or longdate or anything like that, it will use the browser defult.

View solution in original post

38 REPLIES 38
Meneghino
Community Champion
Community Champion

Hi @paNewby, if the PowerApp is running in the browser then you need to change the regional settings for the browser also.

 

For an example with Chrome, please see my earlier post, I think the second in this thread:

https://powerusers.microsoft.com/t5/PowerApps-Forum/DateTime-picker-displays-incorrect-format-for-ou...

 

Please let me know if this resolves your issue.

I am testing it using the Desktop version and pressing the forward arrow (F5) 

I just made sure my Chrome browser was set to Australia and tried launching from there but still it displays in the wrong format. Am I meant to format each date field using the function i.e. will this only work in default format if it stays in MM/DD/YYYY format?

paNewby
Helper III
Helper III

How intriguing. On my PC it works in MM/DD/YYYY format and on my phone it works in "MMMM DD, YYYYY" format. At least that's workable

Sorry, I was premature in accepting your reply. the date displays acceptably on my phone but still in the wrong format on my desktop PowerApps and in emails that are from my workflows. Do you know where I can get a list of places I need to update to get dates to display in the correct format?

Meneghino
Community Champion
Community Champion

Hi @paNewby

Sorry to hear that you are still having issues.  After changing the Chrome settings, all the rest seems to work fine for me.

All my systems run UK locale, including PC, mobile etc.  I am not aware of anything else that needs to change.

Afraid I am at a loss now. My app does what I need but I can't live with incorrectly formatted dates - it's too dangerous e.g. there's a big difference on a due date of 12/1/2017 vs 1/12/2017 - we could be really late, or early, for an appointment.

How exactly is your app displaying the date? Does this not work?

Text(somedatevalue, "dd/mm/yyyy")

I tried inserting a new texbox on the form with your suggested format and I get an error message that says "Invalid arguement type(Control). Expecting a Text value instead"

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Don't miss the call this month on June 16th - 8a PDT

Top Solution Authors
Top Kudoed Authors
Users online (106,572)