Announcements
This seems pretty straight forward and not sure what I'm doing wrong:
DateValue("7/22/2020 9:00 AM", DateTimeFormat.ShortDateTime)
Is returning an empty box. What am I doing wrong?
https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-text
@morall
You must use a 'language code' in the 2nd parameter. Not a date format.
DateValue("7/22/2020 9:00 AM", "en-US")
---Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."
now I'm confused, how do I convert :
"7/22/2020 9:00 AM"
to a datetime object?
evaluated to:
"7/22/2020" and stripped off the time
@morall I should have advised you to use the DATETIMEVALUE function instead.
DateTimeValue("7/22/2020 9:00 AM", "en-US")
@morall Based on your Thumbs Up, did I solve your problem. Please Accept as Solution if yes!
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our 2026 Super Users!
Congratulations to our 2025 community superstars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 529 Most Valuable Professional
Haque 230
Kalathiya 217 Super User 2026 Season 1