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

String was not recognized as a valid DateTime.

flow1.pngFLOW 2.pngI am setting up a flow for everytime a row is added in Excel, an item is added to sharepoint.  I have  a few date columns that I can't figure out what format I need to set them to in Excel for it to read and flow into sharepoint list.  I've included the sharepoint setting screen shot, excel screen shot (currently date is set as a text value), and screen shots of the FLOW and respective error.  


I've tried short date format, long date with time, text, etc.  I am at a lost and the flow keeps failing because of the date format.  

Community Support Team
Community Support Team

Re: String was not recognized as a valid DateTime.

Hi @jcastr02,


The issue will happen is caused by the return value of the Date format of Excel file will be a number of days, which is start from "1899-12-31", so you should convert this number into the Date format, trying the addDays() function:




Annotation 2019-11-06 103637.png

Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources


New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!


Power Automate Community User Group Member Badge

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


Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!


Microsoft Learn

Learn how to build the business apps that you need.


Power Platform World Tour

Find out where you can attend!


Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (4,202)