Skip to main content

How to Format a Date in Power Apps with Text

· 4 min read
Jagdish Kumawat
Founder @ Dewiride

A date from a data source isn't ready to read. Text turns it into words, either with a ready-made format that follows each person's language, or with your own pattern.

Syntax​

Syntax
Text( Date, DateTimeFormat.LongDate )
Text( Date, "dd mmm yyyy" )

Microsoft recommends the DateTimeFormat formats for dates and times, because they "automatically adjust to each user's language and region" (Text function).

Prerequisites​

To format numbers instead of dates, see Convert Number or Integer to Text or String using Power Apps.

Example: When a Response Was Sent​

In the Career Development Plan app, the Response screen tells people when they sent their response. The date is the SubmittedOn column of the loaded record, locResponse:

Part of lblInfoRS → Text
"You sent this on " & Text(locResponse.SubmittedOn, DateTimeFormat.LongDate) & ". Your manager hasn't reviewed it yet, so you can still change it."

With that part of the formula selected, the preview strip shows the result:

The expanded formula bar of lblInfoRS with the pending sentence selected, and the preview strip reading You sent this on Tuesday, October 27, 2026. Your manager hasn't reviewed it yet, so you can still change it

And the screen in preview:

The My response screen with a Waiting for review badge and the line You sent this on Tuesday, October 27, 2026. Your manager hasn't reviewed it yet, so you can still change it

Ready-Made Formats​

Some of the DateTimeFormat values, with Microsoft's sample results for November 23, 2015, 2:37:47 PM:

FormatResult in English (US)
DateTimeFormat.LongDateMonday, November 23, 2015
DateTimeFormat.ShortDate11/23/2015
DateTimeFormat.LongDateTimeMonday, November 23, 2015 2:37:47 PM
DateTimeFormat.LongTime2414:37:47

In another language or region the words and the order change; that's the point of using them.

Your Own Format​

When the layout must be the same for everyone, give Text a pattern of placeholders:

PlaceholderShows
d / ddDay, 7 or 07
ddd / ddddDay name, Sun or Sunday
m / mmMonth number, 1 or 01
mmm / mmmmMonth name, Jan or January
yy / yyyyYear, 15 or 2015
hh:mmHours and minutes
AM/PM12-hour clock

For example, Microsoft's Text( Now(), "d-mmm-yy" ) gives 23-Nov-15. Note that mm means minutes only right after h/hh or right before ss; anywhere else it's the month.

Common Mistakes​

MistakeWhat happensDo this instead
A custom pattern for an international audienceEveryone sees one country's styleUse a DateTimeFormat
mm for minutes, away from hhIt shows the month insteadPut mm right after hh, as in hh:mm
Formatting a blank dateAn empty string in the sentenceShow the sentence only when the date exists

Troubleshooting​

SymptomLikely causeFix
The words are in an unexpected languageDateTimeFormat follows the person's language and regionUse a custom pattern if the layout must be fixed
The sentence has a gap where the date should beThe date is blankCheck the record has the date before showing the sentence

FAQ​

How do I get today's date to format?​

With Now or Today (How to Get the Current Date and Time in Power Apps with Now).

Can I format a date inside a sentence?​

Yes, join it with & as in the example (How to Join Text in Power Apps).

Conclusion​

Text(date, DateTimeFormat.LongDate) gives a readable date that follows each person's language. Use your own pattern only when the layout must be fixed.

Additional Resources​

Stay Updated

Subscribe to our newsletter for the latest tutorials, tech insights, and developer news.

By subscribing, you agree to our privacy policy. Unsubscribe at any time.