I'm having a nightmare with datepickers and getting the correct date to show. I would also like to be able to drop the time and have the date only if anyone has a solution for that.
Bit of background. Been having a nightmare with dates in Powerapps from day one. Had to use all sorts of fiddles to get the ISO format to work (as opposed to mm/dd/yy which was default) And now I'm flat getting the incorrect date. Seems to be since the clock changed.
So I have a form where users can submit holiday requests, which of course has a date picker for start dates. If a user now pics 23/4/2019 as their start date and then submits the form, the date that appears in my SQL table is 22/4/2019 23:00:00
11pm the day before!
What I would like is if a user selects 23/4/2019 as the start date, then 23/4/2019 appears in the datasource, as selected, without the time.
I have the format of the date picker set to ""dd/mm/yy" And the update for that datacard is "DateValue5.SelectedDate". On selecting a confirm buttin I use "SubmitForm(FormName)" and that's when I get the incorrect date.
Has anyone seen anything like this in terms of having the incorrect date appear or found a way to drop the time. I had tried for the update field "DateValue(DateValue5.SelectedDate)" to no avail.
Would changing DateTimeZone.Local to .UTC have any effect (I have a strong feeling what powerapps thinks is my "local" region is not my 'local' region)
Also, does UTC in this context handle daylight savings?