Follow my blog for more interesting topics on Dynamics 365, Portals and Power Platform. For training and consulting, write to us at info@xrmforyou.com
Working with date and time values are one of the most common requirements across implementations irrespective of the technology and the same applies to PowerApps canvas apps.
And Canvas app have power functions in it’s kitty. It has the following functions
- Now() – displays the current date and time
- Today() – displays today’s date without the time. The time is always set to midnight 12:00 AM
- IsToday() – Check if a date specified is today’s date. The function will return true from midnight of current day to the midnight of the next day.
So if you want to compare a date value to check if it’s today’s date, no need to compare between Now() and Today(). Use the function IsToday()
Now that we know the powerful functions inside canvas apps, it’s time to understand how to display date values in specified format. Below is a screenshot of how to do the same. You can pass specific predefined formats.
If you are not happy with the predefined formats, no need to worry. You can specify the format of your choice.
As you can see in the above screenshot, we can specify any format as desired.
Hope this helps!
Debajit Dutta
(Business Solutions MVP)
Discover more from Debajit's Power Apps & Dynamics 365 Blog
Subscribe to get the latest posts sent to your email.