cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
sulrik
Helper I
Helper I

Two date pickers

Hi.

 

I'm using an excel spredsheet as datebase and I've got ther two columns with dates. In app I'm using two date pickers. Both are configurated in the same way. When I submit the form one DateValue is accepted and the second one not - I'm getting error - invalid value please use a valid ISO8601 date... and I'm realy confused. 
I think, I've tried everything, but whitout success.

1 ACCEPTED SOLUTION

Accepted Solutions
RandyHayes
Super User III
Super User III

@sulrik 

How does the data in your Excel file look?  Is it possible that you are dealing with different type of date formats in the Excel file for those two columns?  The only way to really "tell" PowerApps what type of columns you have in your Excel is to have them formatted properly in the Excel table.  For example, a column of numbers will be treated as a numeric column.  If you wanted that to be treated as text, you would need to format the column in Excel to be text. Same thing for dates and other types.

It sounds like it have misinterpreted the type of date in your second date column.  I would take a look over that first.

 

I hope this is helpful and leads to a solution for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too!

View solution in original post

3 REPLIES 3
RandyHayes
Super User III
Super User III

@sulrik 

How does the data in your Excel file look?  Is it possible that you are dealing with different type of date formats in the Excel file for those two columns?  The only way to really "tell" PowerApps what type of columns you have in your Excel is to have them formatted properly in the Excel table.  For example, a column of numbers will be treated as a numeric column.  If you wanted that to be treated as text, you would need to format the column in Excel to be text. Same thing for dates and other types.

It sounds like it have misinterpreted the type of date in your second date column.  I would take a look over that first.

 

I hope this is helpful and leads to a solution for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too!

View solution in original post

v-yuxima-msft
Community Support
Community Support

Hi @sulrik 

 

Agree with @RandyHayes 's suggestion, could you please check the Format of your Date Columns in your Excel Table?

And you can also use Patch function instead of SubmitForm to test whether there are the same issues.

More information:

function-patch

 

Best Regards.

Yumia

 

Thanks a lot! The second column was formated as general, after change it's started to work.

Helpful resources

Announcements
User Groups Public Preview

Join us for our User Group Public Preview!

Power Apps User Groups are coming! Make sure you’re among the first to know when user groups go live for public preview.

Power Apps Community Call

Monthly Power Apps Community Call

Did you miss the call?? Check out the Power Apps Community Call here!

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Top Solution Authors
Top Kudoed Authors
Users online (49,302)