I have a text input control, myDateControl, in a Power App linked to Share Point lists. myDateControl is used for patching an SP list.
To extract the date from myDateControl, I have:
Thank you, I suspected I was doing something stupid but couldn't see it. Yes, in fact, I should just use datepicker. Greatly appreciated, Thank you!
Hi @neuronic ,
The issue is that you have reversed the day and year arguments:
By swapping them, you get the correct output:
Date(
Last(Split(newArtistDob.Text,"/")).Value,
Last(FirstN(Split(newArtistDob.Text,"/"),2)).Value,
First(Split(newArtistDob.Text,"/")).Value
)
On a different note, why not use a datepicker control?
WarrenBelz
791
Most Valuable Professional
MS.Ragavendar
410
mmbr1606
275
Super User 2025 Season 1