Get date in PowerApps
Microsoft PowerApps gives you many default function to fulfill the requirements. To get the today date in PowerApps is very easy. To do this, use the following function:
- Today() – It returns the current date & time.
To format the date & time value with your own format, use the Text() function as follows:
- Text(Today(), “mm/dd/yyyy hh:mm:ss”) – It retrieves the date and time in Monday/Day/Year Hour:Minutes:Seconds format and displays it as a string.
- Text(Today(), “mm/dd/yyyy”) – It will return the date in the format of Month/Day/Year and truncates the time.
Text can be used in other requirements as well. I will post another use of Text() function later.
Note: If you found any ambiguity, please do comment.
Absorb what is useful. Discard what is not. Add what is uniquely your own. – Bruce Lee