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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Insert row into SQL fl...
Power Automate
Answered

Insert row into SQL flow saves dates minus one day

(0) ShareShare
ReportReport
Posted on by 6

I built a flow to take data from an excel file and insert it into a SQL table. However, when I check the data saved into the SQL table all the dates are minus one day. 

medellsi24_0-1652977868320.pngmedellsi24_1-1652977874628.png

Following is the comparison between excel and the SQL table. 

medellsi24_2-1652977913102.png

medellsi24_3-1652977922287.png

Does anyone have a suggestion on how to address this or if it could be caused by the insertion into SQL itself?

 

Thanks

 

Categories:
I have the same question (0)
  • Verified answer
    Heartholme Profile Picture
    1,278 Super User 2024 Season 1 on at

    Hi @medellsi24 

     

     

    The issue is that if you set the default date as a text value with no time component and time zone set to UTC (the 'Z' at the end), it will convert to a Date value, and the date will be converted to a date in the local time zone. If you are anywhere west of UTC (i.e., almost all of the Western hemisphere, incluinding the Americas), then it will end up in the day before. 

     

    Could you add a compose to extract out the date and we can look into reformat it to not jump a day. 


    Best Regards
    Heartholme

  • medellsi24 Profile Picture
    6 on at

    Thanks for that information, I was able to work around this by using formatDateTime to only pass on the date without a time zone for example: formatDateTime(ITEM()?['QTRBEG'], 'MM-dd-yyy').

  • Heartholme Profile Picture
    1,278 Super User 2024 Season 1 on at

    Perfect 🙂 Glad to hear!

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 112 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 52

#3
Ellis Karim Profile Picture

Ellis Karim 51 Super User 2026 Season 1

Last 30 days Overall leaderboard