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.
Following is the comparison between excel and the SQL table.
Does anyone have a suggestion on how to address this or if it could be caused by the insertion into SQL itself?
Thanks
Perfect 🙂 Glad to hear!
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').
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
Michael E. Gernaey
497
Super User 2025 Season 2
David_MA
436
Super User 2025 Season 2
Riyaz_riz11
244
Super User 2025 Season 2