web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Apps
Answered

Date Format

(0) ShareShare
ReportReport
Posted on by 2,129

Content migrated from TechNet.  Post attribution to:  PK Hong
Hi

We used to enter date as: dd/mm/yyyy; Hence, in the InputBox, when I have Today(), it will show mm/dd/yyyy (US Format). I tried using Text(Today(), "dd/mm/yyyy") to force it to change but in vain. Moreover, the date actually displayed in another page after Navigation, show, Date: yyyy-mm-dd and hh:mm:ss. So, I have to use Left(Date, 10) to truncate.

Quite a stupid way. Any suggestion? It always make me in trouble, because any WRONG FORMAT will result in PATCH fails to write into excel file (I spent 20 min to find out this).

TQ


PK Hong

Categories:
I have the same question (0)
  • Verified answer
    Migrated_User Profile Picture
    2,129 on at

    Hi PK,

    From the Insert tab, select Text, select Input Text, and rename it to ArrivalDateTime.

    Directly in ArrivalDateTime, set default to Today():

    Add a label, and set its Text property to the following expression:
    DateValue(ArrivalDateTime!Text,"fr")

    Then the text box will be displayed like dd/mm/yyyy:

    Best Regards,

    Lisa Chen

  • Migrated_User Profile Picture
    2,129 on at

    Hi Lisa

    Thanks for clarification. I did before but thought that "en" = dd/mm/yyyy and all European format is mm/dd/yyyy.

    Next time, I will try out ALL the choices.

    Thanks.


    PK Hong

  • Migrated_User Profile Picture
    2,129 on at

    If you try setting the Default property of the Text Input to Text(Today(), "dd/mm/yyyy") that should work, isn't that what you see? Using the Text function is the correct way to display a date in a specific format.


    Carlos Figueira

  • Verified answer
    Migrated_User Profile Picture
    2,129 on at

    Please do not use this technique (use of the function DateValue) for formatting a Date value (i.e., for converting it into a string to be either shown to the user or passed to a connector / service). This may work for some days (like in the example above), but it will most certainly fail in others (as can be seen in this other post). DateValue is used to convert a string into a Date value. If you want to convert a Date (or DateTime) value to a certain text format, use the Text function:

    Text(Today(), "dd/mm/yyyy")


    Carlos Figueira

  • Migrated_User Profile Picture
    2,129 on at

    Hi

    Initially I used Text(Today(), "dd/mm/yyyy") and change to DateValue as other's advice.

    I think I agree with you to switch back to the original setting because NOW, I am facing problem due to all production data uses DATE to sort. If there is anything goes wrong, all the data in mess.

    Thanks.


    PK Hong

  • Migrated_User Profile Picture
    2,129 on at

    My latest problem is NO Data is Patched when I change the way of data inputting.

    My scenario:

    1. Data Entry: Use Text(Today(), "dd/mm/yyyy") to capture today's date during and entry and at the same time, enter other data. Then, Patch all of them into defaults(table).

    2. When I display the data, I used the same = Text(date, "dd/mm/yyyy") but it appears yyyy-mm-dd.

    Very embarrassing.

     

     


    PK Hong

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thanks very much @Migrated_User!  Your formula worked perfectly for me.

  • WPB Profile Picture
    204 on at

     @Migrated_User

    I don't know why Powerapps uses Retarded format? The whole world is using dd/mm/yyyy. Intuitive and easy. I made many apps and always need this text(Date,"dd/mm/yyyy") workaround. Would it be possible to make it app setting thing? Just asking 😛

  • JacquesOlivier Profile Picture
    on at

    This is still a problem for me and no One function seems to works to show a date from a SharePoint List in a proper* format dd MMM yyyy.
    I end up using this in a form datacard: Text(DateValue(Text(Parent.Default),"en-GB"), "[$-en-US]dd mmm yyyy")
    It seems redundant to have to convert a "Date" value to Text, just to convert it to a DateValue which can eventually be formatted into a custom text format but it works.

     

    *Personal preference: I like this format and consider it proper as there is no ambiguity if the day is less than 13. The user don't have to figure out the date format being used in different apps / environments

  • JacquesOlivier Profile Picture
    on at

    GREAT!!! The Format property has been added to a date control. It is now so easy to set the format to "dd mmm yyyy" get 24 Feb 2021.  

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 325 Most Valuable Professional

#2
11manish Profile Picture

11manish 165

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 88 Super User 2026 Season 1

Last 30 days Overall leaderboard