Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Answered

how to Insert Date values in SQL table from excel

(0) ShareShare
ReportReport
Posted on by

Hi Mates,

we have date values in excel, we need to insert in to table 

i just created a compose for assign excel field , then next compose formatted like formateDateTime(outputs('compose')) but it throws error like can not format, 

if this is not right way ..!

i also tried with variable(initial : string)

then set variable i could not see any excel column at Dynamic content to map like excel column formateDateTime(exceldatefield,'mm/dd/yyyy')

Any help please

Any help please 

  • Community Power Platform Member Profile Picture
    on at
    Re: how to Insert Date values in SQL table from excel

    Hi @rsaikrishna 

    thank you...! its working charming, thanks for saving my time.

     

    Closing this issue now.

  • Verified answer
    rsaikrishna Profile Picture
    3,703 on at
    Re: how to Insert Date values in SQL table from excel

    @Anonymous 

     

    Please give a try with the following expression:

     

    if(greater(length(outputs('Compose')),0),addDays('12-30-1899',int(outputs('Compose')),'MM-dd-yyyy'),null)
     
    Please let me know if you have any more questions.
     

    Regards

    Krishna Rachakonda

    If this reply helped you to solve the issue, please mark the post as Accepted SolutionMarking this post as Accepted Solution, will help many other users to use this post to solve same or similar issue without re-posting the issue in the group. Saves a lot of time for everyone.
  • Community Power Platform Member Profile Picture
    on at
    Re: how to Insert Date values in SQL table from excel

    Hi Mates,

    working fine with when excel date field don`t have blank only, but what if we have row has blank value..?

     

    addDays('1899-12-30',int(output('compose'),'yyyy-MM-dd')

     

    i can convert and insert date values, when value is there in excel

    what if excel has blank  it should should not stop, it should iterate with next values.

    any help here if no value then it should blank, else update with excel value

     

  • MJain Profile Picture
    2,450 on at
    Re: how to Insert Date values in SQL table from excel

    Hi @Anonymous ,

     

    Please refer to similar threads to handle excel dates in MS Flow:

     

    https://powerusers.microsoft.com/t5/Using-Flows/Convert-excel-numerical-dates-to-date-MS-FLOW/td-p/408590

     

    Thanks

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,660 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,999 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow