web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to convert Excel d...
Power Automate
Unanswered

How to convert Excel datetime value to SQL Server datetime?

(0) ShareShare
ReportReport
Posted on by 173

I've got an Excel spreadsheet with Start and End datetime's.  In Excel they are formatted as "9/21/21 2:39PM".  In my flow I get the Excel table, list the ros from the table, and notice this time comes out as "44460.6110763889".  If I try to use that value in my SQL Server Insert Row step I get an error saying "We cannot convert the value "44460.6110763889" to type DateTime.".  At first I thought it's because of the quotes and I changed the value to a float, but I got the same error.

 

I have figured out how to change this to an integer and use addDays to get the date into SQL Server, however I need the time too.

 

How do I import the Excel datetime into SQL Server?  

 

Thanks!

Categories:
I have the same question (0)
  • Verified answer
    CFernandes Profile Picture
    8,402 Most Valuable Professional on at

    Hey Mate,

     

    I assume you are using List rows present in the table if yes just set the format in the action itself-

     

    CFernandes_0-1642104713539.png

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

     

    P.S. take a look at my blog here and like & subscribe to my YouTube Channel thanks.

     

  • RichardUchytil Profile Picture
    173 on at

    Ah, I missed that!  Thanks tons for the help!!!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard