cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Re: DateTimeValue in Chrome Error

tl:dr - Don't try forcing a format before the DateTimeValue function, only force it after if need be

 

Good find @iAm_ManCat , I did in fact encounter this bug earlier when I was testing on a french language browser (since I am developping for a Canadian audience I can't assume that everyone is using an english browser)

 

April 16, 2019 -> 4/16/2019 -> (browser thinks it is dd/mm/yyyy) 4/(16-12)/(2019+1) -> 4/4/2020

 

What seemed to work was removing the formating of the date all together (it will give a different formating between browsers, but the DateTimeValue will always work as expected)

 

If formating there needs to be, do it at the DateTimeValue(Date, FORMAT) level, not the Text(Date,FORMAT) level.

 

Code for label:

Text(Today()) & " " & "00" & ":" & "00"

"DATE: " & DateTimeValue(Label2.Text)

 

DateTimeEdge.PNG

 

DateTimeChrome.PNG

 

DateTimeIE.PNG

View solution in original post

Helpful resources

Announcements
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

New Badges

Check it out!

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors
Users online (5,272)