cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anthony_Regul
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.
1 REPLY 1
tom_riha
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.

image.png



[ 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

Announcements
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.

New Process Advisor Capabilities carousel.png

Read the blog for the latest news

Read the latest about new experiences and capabilities in the Power Automate product blog.

PA Survey Carousel Image.png

We want to hear from you!

If you are a small business ISV/Reseller, share your thoughts with our research team.

Users online (2,518)