Date and Time Formatting in Power App

Under this blog, we will learn how to show a date and time value in various formats using Power Apps.

For this post, we will use Today() function to get the Date and Now() function to get the Date and Time. However, you can replace this with SelectedDate from the DatePicker control, or you can also use DateValue() or DateTimeValue() function to generate a Date (or DateTime).

We have previously looked into how to get first date of a month and last date of a month.

First, we add two labels, one for Today() and another for Now()


To format the date, we use the Text() function and specify the format that we want. For example, if we use Text(Today(), LongDate), then it will give as below:


In the same manner, the other most commonly used formatting options available are:



Comments

Popular posts from this blog

Generate QR code within Power Automate

Restrict Attachment control in PowerApps to accept Excel files only

Get start and last date of month using Power Apps