I have a need to break out a date into multiple values.
I have a datacard with a date and time in it.
I want to take the text that is in this datacard, and pull out values for date, hour, minutes, and AM/PM
At first I thought that since this is just text, I can create a label, and convert the text to an actual date/time.
I have not found a way to pull out values for date, the hour, the minutes, and whether it is AM or PM.
is this possible?
I thought about doing 4 more labels and putting the values there, but i dont know how to break it up, or if it is even possible.
I figured this out, using these two links:
https://www.matthewdevaney.com/all-power-apps-date-time-functions-with-examples/
https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-left-mid-right
I created a label to make the text into a date value
DateTimeValue(DataCardValue5.Text)
Then created a label for the hour and minutes and pulled the values out
Hour(DateTimeConvertfromText)
Minute(DateTimeConvertfromText)
for the AM/PM, I used the Right function
Right(DateTimeConvertfromText, 2)
WarrenBelz
791
Most Valuable Professional
MS.Ragavendar
410
mmbr1606
275
Super User 2025 Season 1