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 / Problem with date form...
Power Apps
Answered

Problem with date format in PowerApp (shows month name as string instead as number)

(0) ShareShare
ReportReport
Posted on by 20

Hello everyone, I come with a big question, maybe you can help me.
I developed a very simple PowerApp that I connect to a PowerAutomate flow. One of the data that I send is the date that you see in red. The funny thing is this: As you can see at the top, I put a label that represents the date from the DatePicker and displays it in numerical format, which is correct for me. When I tested with one of my users, the date changes to text in the month name, which gives me errors in the flow. Does anyone know how I can correct this? I'm running the app from the web editor and the desktop app on the same computer and I'm having this discrepancy.
Greetings and thanks!

error power apps.png

Categories:
I have the same question (0)
  • Verified answer
    crisfervil Profile Picture
    126 on at

    @ricklazarus,

     

    The display format of the dates depends on the language settings of the browser, that's why your user sees the date in a different format than yours. 

     

    If you want to pass this value to a flow, define the input type for the parameter as date.

    crisfervil_0-1710349126345.png

     

    Then, when calling the flow, convert the date in your date picker control to a text value using the Text function

    https://learn.microsoft.com/en-us/power-platform/power-fx/reference/function-text

     

    Something like this:

    MyFlow.run(Text(MyDatePicker.SelectedDate ,"yyyy-mm-dd"))

     

    I hope it helps!

     

     

     

     

  • ricklazarus Profile Picture
    20 on at

    Hi @crisfervil 

     

    I have set up my the input type as date from the start, but let me try the code you say and come back with news.

     

    Best!

  • ricklazarus Profile Picture
    20 on at

    Worked as charm! Thanks a lot @crisfervil 

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 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard