Formatting your dates in PowerApps

Dates in PowerApps are easy, or maybe not! When I looked at dates in PowerApps today and I set a label to Now() a date was displayedas expected in dd/mm/yyyy hh:mm format. This is all easy, but what if the dates come from SharePoint.

I still get the same dates coming back. Ok, this is good, but how about calculated fields:

This is weird:

Now the dates come back in a different format. How do I get the right date format back? The solution is easy. I had a look through my PowerApps Function as and Expressions post from a while back and found the DateTimeValue function

DateTimeValue(‘Calculated Date’)

 

Advertisements

Please leave a comment or feedback

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.