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 Platform Community / Forums / Power Pages / date format on entity ...
Power Pages
Answered

date format on entity forms

(0) ShareShare
ReportReport
Posted on by

Hi All

I'm having difficulty on dealing with the date format on forms.

I have changed the current format to English (New Zealand)  to show dates as dd/mm/yyyy both on Settings/Personal Options on the Portal Management and on Settings/Administration/System Settings, but the form that I have in a page of the portal (to be used by an invited contact) still shows dates in mm/dd/yyyy. 

Do I need to recreate the entity or the form for the new format to take effect? or is there somewhere else I need to change the setting?

Any help is much appreciated.

 

Regards

Werner

Categories:
I have the same question (0)
  • v-monli-msft Profile Picture
    Microsoft Employee on at

    Hi @werner1 ,

     

    In Form control, you can set below formula on the control to show the date format in dd/mm/yyyy format:

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

     

    And the format goes with the locale setting of your computer. For more information, please refer to:

    https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/show-text-dates-times

     

    Regards,

    Mona

     

  • werner1 Profile Picture
    on at

    Hi Mona
    I guess that's for a canvas-app. I can't see anywhere I can change the control format when using an entity form. I have created a new CDS entity,  the testDate field is of type Date only. I have created a custom form for that entity and used that form on a page from the portal. Picture on the left shows part of the form definition and on the right the page displaying on browser.   

     

    Annotation 2019-11-07 163821.pngAnnotation 2019-11-07 164311.png

     

    Regards

    Werner

  • Verified answer
    rulesrchanged1 Profile Picture
    Microsoft Employee on at

    This documentation explains how the datetime field behaves on portal and how you can make date field appear in the format you want https://docs.microsoft.com/en-us/powerapps/maker/portals/configure/behavior-format-date-time-field

  • werner1 Profile Picture
    on at

    Although I have read that article several times, it was not clear to me that i needed to add a site setting DateTime/DateFormat, even if there is another place to set date format (system settings for Dynamics 365).

    Thanks for helping solve the problem.

  • rulesrchanged1 Profile Picture
    Microsoft Employee on at

    Np @werner1 , would you mind marking the thread as answered

  • tacklers2 Profile Picture
    43 on at

    Great post.

     

    Any idea of what the syntax of the site setting actually is?

     

    Cheers, Richard

  • MichaelGartner Profile Picture
    4 on at

    For anyone who finds this in the future, this worked for me:

    1. yyyy-MM-dd – 2020-05-16
    
    2. MMM dd yy – May 13 20
    
    3. dd/MM/yyyy – 27/05/2020
    
    4. dd/MM/yyyy HH:mm – 14/05/2020 12:27
    
    5. dd/MM/yyyy hh:mm:ss – 12/05/2020 12:30:52 – 12 Hour format
    
    6. dd/MM/yyyy HH:mm:ss – 27/05/2020 19:32:02 -24 Hour format

    From: https://debajmecrm.com/working-with-custom-datetime-formats-in-powerapps-dynamics-365-portals/

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 Pages

#1
sannavajjala87 Profile Picture

sannavajjala87 42 Super User 2026 Season 1

#2
Valantis Profile Picture

Valantis 33

#3
11manish Profile Picture

11manish 20

Last 30 days Overall leaderboard