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 / Using a Datepicker Dat...
Power Apps
Answered

Using a Datepicker Date Value as Flow Input

(0) ShareShare
ReportReport
Posted on by 12

Hey,

 

i recently build and app that, n order to start requires the User to make 2 date entries before it can start. Thos ehave to be in the YYYY-MM-DD format as the flow requires that exact format to do its thing. When I use a textfield asking the User to put in times manually in the requested format and connect the button with the text-textinput1/2 value, everything works perfectly fine.

However when i try to make it more comfortable and offer datepicker instead of textinput fields it gets messy. Although i changes the format(display format) of the date picker to yyyy-mm-dd i cant get it to forward that to the flow. Instead it will always send DD/MM/YYYY. Im not sure what i have to do so i can get the right input format to my flow.

Categories:
I have the same question (0)
  • Verified answer
    CarlosFigueira Profile Picture
    Microsoft Employee on at

    You can use the Text function to convert the selected date in the date picker to the format that the flow expects. Something along the lines of

    MyFlow.Run(Text(DatePicker1.SelectedDate, "yyyy-mm-dd"))
  • Michael90 Profile Picture
    12 on at

     Thank you it worked perfectly

  • stefano77 Profile Picture
    12 on at
     
    sorry but I'm not an expert. where is this command inserted? directly into the FLOW , where?
     
    Thanks
  • Kimii Profile Picture
    134 on at

    @stefano77 
    you use that command in power apps, OnSelect of the button to run your flow

  • schwibach Profile Picture
    2 Moderator on at

    @CarlosFigueira 

    I had this problem, too.

    It was a bit frustrating that the value of the datepicker cannot directly be handed over to Power Automate.
    Maybe, it would be a good idea to include this in the documentation for the modern date picker control.

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 483

#2
WarrenBelz Profile Picture

WarrenBelz 399 Most Valuable Professional

#3
11manish Profile Picture

11manish 327

Last 30 days Overall leaderboard