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"))

View solution in original post

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"))

View solution in original post

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
thirdimage

Power Automate Community User Group Member Badge

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

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors
Users Online
Currently online: 301 members 5,862 guests
Please welcome our newest community members: