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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Format a Date dd.mm.yy...
Power Apps
Unanswered

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
    784 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
    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard