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
Power Apps Staff CarlosFigueira
Power Apps 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"))

View solution in original post

3 REPLIES 3
Power Apps Staff CarlosFigueira
Power Apps 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"))

View solution in original post

Michael90
Level: Powered On

Re: Using a Datepicker Date Value as Flow Input

 Thank you it worked perfectly

Highlighted
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
Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

thirdimage

Power Apps Community User Group Member Badge

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

sixthImage

Join THE global Microsoft Power Platform event series

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Microsoft Business Applications Virtual Launch

Join us for the Microsoft Business Applications Virtual Launch Event on Thursday, April 2, 2020, at 8:00 AM PST.

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (9,096)