Showing results for 
Search instead for 
Did you mean: 
New Member

Date and time issue when importing excel data to SharePoint list

Hi, need help. issues passing formula 

addDays(‘1899-12-30’,int(first(split(variables(‘varDate1’), ‘.’))),’yyyy-MM-dd’)  to expression in SP Create item. Every time i press ok , it gives me a message < Expression is invalid.
Any ideas why? Your help is much appreciated.
Super User
Super User

Hello @Anthony_Regul ,

the expression looks fine, I'd just check if you're using the right character for the single quotes. But if you're importing data from Excel using the 'List rows present in table' action, you can take the dates directly in the ISO format (no need for the expression). Just select that you want them in ISO 8601 in the advanced settings.


[ If I have answered your question, please Accept the post as a solution. ]
[ If you like my response, please give it a Thumbs Up. ]

[ I also blog about Power Automate solutions even for non-IT people. ]

Helpful resources

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Top Kudoed Authors
Users online (4,385)