Blog Layout

Data Loader Time Zone

Mike Arthur • Sep 11, 2015

When dates don't display what you entered or imported

Had a strange one today - I used Data Loader to import some Contract records, including Start Date and End Date.

With my 1 row test import the dates showed in Salesforce as 1 day earlier than the date in the csv file. I had a look at csv date formats but that didn't fix it.

The Start Date and End Date fields are 'Date' type and not 'Date/Time' so that wasn't it either.

In the interests of just getting the job done I added a day to the date in the import test file and, after loading, the dates in Salesforce were as intended.

I applied this to the full import file and loaded the data. The result was that in Salesforce, some of the dates were as intended and some were a day later than intended! I deleted the imported records.

After more poking around I came to Data Loader Time Zone in the Settings menu. Mine was set to 'Europe/London'. I changed it to 'GMT' and reran the test import file using the original date in the file. Success!

Loaded the original full import file with the dates that were intended and all loaded correctly.

Can't explain that one, British Summer Time possibly a factor, but if you're having strange things happening with dates in Data Loader, have a look at the Time Zone setting.



My Blog of Salesforce Stuff

by Mike Arthur 16 Oct, 2021
'XHR Failed' error when trying to install VS Code extension
by Mike Arthur 09 Jun, 2020
What is $A (dollar A) in Lightning Aura component framework? Is it a global variable? Where are the docs for $A?
by Mike Arthur 08 May, 2020
Authorise a Salesforce Connected App using OAuth 2.0 JWT Bearer Flow
by Mike Arthur 26 Apr, 2020
REST API Connection to Salesforce Connected App Using OAuth 2.0 Authentication from Postman
by Mike Arthur 23 Mar, 2020
How to create a Lightning tab menu with dropdown sub-menu
by Mike Arthur 27 Nov, 2018
How to show a month by month trend chart with multiple years on same chart
by Mike Arthur 06 Nov, 2018
What to do if you receive emails about expiring certificates
22 Aug, 2018
Process json strings when working with integrations
by Mike Arthur 22 Aug, 2018
If you're switching email accounts you can copy appointments from one calendar to the other
by Mike Arthur 22 Aug, 2018
When you search in Outlook 2016, how do you see in which folder you filed an email in the results?
More posts
Share by: