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 / Format a Date dd.mm.yy...
Power Apps
Suggested Answer

Format a Date dd.mm.yyyy into yyyy-mm-dd in power Apps

(1) ShareShare
ReportReport
Posted on by 8
Hello Everybody
 
I am trying to format a date from dd.mm.yyyy into yyyy-mm-dd.
 
I found the following formula on the internet, but it does not work. 
 
DateValue(DataCardValue.SelectedDate; "yyyy/mm/dd")

Can anyone help me?
 
Thank you in advance
I have the same question (0)
  • Suggested answer
    abc 123 Profile Picture
    789 Moderator on at
    //Use intrinsic date formats based on region
    UpdateContext({strWrongFormat: "04.10.2024"});
    UpdateContext({dtmRightFormatEn: DateValue(strWrongFormat,"en") });
     
    //Take full control
    UpdateContext({strDay: Left(strWrongFormat,2)});
    UpdateContext({strMonth: Mid(strWrongFormat,4,2)});
    UpdateContext({strYear: Right(strWrongFormat,4)});
     
    UpdateContext({dtmRightFormatCustom: DateValue(strMonth & "/" & strDay & "/" & strYear) });


     
     
  • CarlosFigueira Profile Picture
    Microsoft Employee on at
    If the DataCardValue is a date picker control (that already gives you the a date value), then you can use the Text function to format it as you want:
    Text(
      DataCardValue.SelectedDate,
      "yyyy-mm-dd"
    )
    If the date you have is a text value, then you can use the DateValue function to convert that into a date value. The second argument of DateValue is a locale, and the date will be parsed in that locale. In "dd.mm.yyyy" is the default format for the de-DE locale, so you can use an expression like the following:
    Text(
      DateValue(<your date as text>, "de-DE"),
      "yyyy-mm-dd"
    )
    Hope this helps!

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 1,033

#2
Valantis Profile Picture

Valantis 632

#3
11manish Profile Picture

11manish 607

Last 30 days Overall leaderboard