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

Community site session details

Session Id :
Small and medium business | Business Central, N...
Unanswered

Excel import - Date fields are being imported differently based on user timezone

(0) ShareShare
ReportReport
Posted on by 373

Hi, we are trying to read an xlsx spreadsheet to import data into Business Central and create purchase invoices.

We are following the logic found here: https://madhda.com/microsoft-dynamics-365-business-central-how-to-use-excel-buffer-to-import-data-with-multiple-sheets/

We are experiencing issue with cells formated as date that are being imported with a different value based on the user timezone

The files being imported are generated automatically by another system that we have no control over.

We are trying to be able to import the files as is, without any user having to do any conversion or changes to them

If we save the file as CSV, we see the same value was if we open the excel file as is, which should be 7/19/2022

If the user importing the file is in any timezone before UTC time, it's changing the date to be 7/18/2022

If the user is in UTC or anything greater than UTC, the date is being imported properly.

If we create our own sample file with same data, it's all being imported as 7/19/2022 regardless of the user timezone settings

How can we get the same result importing a file regardless of where it's coming from?

Please note that the data is not being formated or modified in any way during the import

The dates mentioned above are the ones we see in the debugger from ExcelBuffer."Cell Value as Text"

Any ideas?

I have the same question (0)

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
Rishabh Kanaskar Profile Picture

Rishabh Kanaskar 2,762

#2
Sumit Singh Profile Picture

Sumit Singh 2,573

#3
YUN ZHU Profile Picture

YUN ZHU 1,930 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans