I have a canvas app running on iPads, had problem with Date Picker so decided to create a 3 control component to pick month, day and year from dropdowns.
Using the following expression does the job, but was expecting an error if the user selected an invalid date like 04/31/1950. Instead of raising an error, the function simply advances the number of days past the end of the month. In the case of 4/31/1950, it returns 5/1/1950!! What??
ddDOBDay.Selected.Value & "/",
Using the Date() function behaves the same way. Am I missing something?? In every language I've ever programmed in, this would raise an error as an invalid date, which is what I want. This is being used as a DOB so advancing is NOT OK.
My users don't like it. The calendar adds no value and is confusing when they just want to change the year. We are minimizing typing so entering the date is not a good answer. Tapping on the iPad is by far the best solution. Users love the new UI but these function behave in a very odd way.
Are you thinking this is by design? I don't know any other language whose date conversion functions would do this.