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 Apps / Date conversion to dd/...
Power Apps
Answered

Date conversion to dd/mm/yyyy

(0) ShareShare
ReportReport
Posted on by 57

Hi All,

 

I have a column in sharepoint list of type date which i want to update with current date in NL foramt (dd/mm/yyyy).

 

when i use below function, it gives me the wrong data

DateValue(Text(Today()),"nl")  --> 8/11/2020

 

but if i change the language to en the date is correct but in mm/dd/yyyy format.

DateValue(Text(Today()),"en") --> 11/20/2019

 

How can i get the date in dd/mm/yyyy format ?

 

Regards,

Utsav

 

Categories:
  • mdevaney Profile Picture
    29,993 Moderator on at

    @utsav_ghosh1 

    Have you tried this approach already?

     

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

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

  • utsav_ghosh1 Profile Picture
    57 on at

    yes.. it is giving me wrong date

     

    DateValue(Text(Today(),"[$-en-US]dd/mm/yyyy"))  --> 8/11/2020

  • mdevaney Profile Picture
    29,993 Moderator on at

    @utsav_ghosh1 

    This code...

    Text(Today(),ShortDate,"nl")

     

    ...would appear to yield...

    20-11-2019

     

    ...and this...

    Substitute(Text(Today(),ShortDate,"nl"),"-","/")

     

    ...would get the desired format (although not a date).  So you could use the above for display purposes only (not to upload as a date to SharePoint).

    20/11/2019

     

    Can you work with this info?

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

  • Verified answer
    timl Profile Picture
    37,287 Super User 2026 Season 2 on at

    Hi @utsav_ghosh1 

    Can you show us the formula that you're using to update your SharePoint list? Are you calling the Patch function?

    If so, you could just call Today() to return todays date. For example...

     

    Patch(MySharePointList,
     Defaults(MySharePointList),
     {Title: "MyRecord", StartDate: Today()}
    )
    

    With regards to the original syntax...

    DateValue(Text(Today()),"nl")

    ..this type of expression is redundant because in effect, we're calling Today() to return todays date, converting this to text with the Text function, and then converting that result back into a date with the DateValue function.

    Therefore, my suggestion would be to update your SharePoint list with Today(), and then check the record that's been added/updated from within SharePoint. Is the record showing the correct date?

  • mdevaney Profile Picture
    29,993 Moderator on at

     

    @utsav_ghosh1 

    I agree with @timl.  My initial thought was also that you should just PATCH using Today().  But it also seemed like you were just trying to get the date to display "properly" so my response was a reflection of that instead.

     

    In any case, we'll all help you figure it out.

  • utsav_ghosh1 Profile Picture
    57 on at

    Hi @timl ,

  • timl Profile Picture
    37,287 Super User 2026 Season 2 on at

    Hi @utsav_ghosh1 

    Thanks for clarifying that the problem is with the display of the date only. Is there any reason why you want to call DateValue?

     


    @utsav_ghosh1 wrote:

    yes.. it is giving me wrong date

     

    DateValue(Text(Today(),"[$-en-US]dd/mm/yyyy"))  --> 8/11/2020


    Can you clarify whether @mdevaney's worked for you (ie calling the Text function without DateValue)?

     

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

     

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 397 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 354

#3
WarrenBelz Profile Picture

WarrenBelz 232 Most Valuable Professional

Last 30 days Overall leaderboard