cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Michael90
Level: Powered On

Using a Datepicker Date Value as Flow Input

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.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
PowerApps Staff CarlosFigueira
PowerApps Staff

Re: Using a Datepicker Date Value as Flow Input

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"))
3 REPLIES 3
Highlighted
PowerApps Staff CarlosFigueira
PowerApps Staff

Re: Using a Datepicker Date Value as Flow Input

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
Level: Powered On

Re: Using a Datepicker Date Value as Flow Input

 Thank you it worked perfectly

stefano77
Level: Powered On

Re: Using a Datepicker Date Value as Flow Input

 
sorry but I'm not an expert. where is this command inserted? directly into the FLOW , where?
 
Thanks

Helpful resources

Announcements
firstImage

PowerApps Monthly Community Call!

Join us next Wednesday for our Demo Extravaganza, October 16, 2019 8am PDT.

firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Top Kudoed Authors
Users Online
Currently online: 310 members 4,436 guests
Please welcome our newest community members: