SharePoint list date error based on regional settings – how to fix

In this post we look at a recent issue with date formatting based on a SharePoint sites regional settings and how to resolve

2–3 minutes

In this post, we’ll take a look at a recent problem regarding date formatting that’s tied to the regional settings of a SharePoint site. We’ll also explore ways to fix this issue.

The problem

I recently came across an issue with a list in a SharePoint environment where I was unable to enter a date value (it defaulted to today’s date), and the list came up with an error like this:

Example error for date/ time columns in a SharePoint list.

This was a custom list with a date/ time column added. The site the list resided in had it’s regional settings changed to have a English (UK) locale. The change to the regional setting was where the problems started, as after it was applied the date format when adding/ editing items is in mm/dd/yyyy rather than the required dd/mm/yyyy, causing the error above to show and not letting you submit the data.

The solution

The solution for me was posted by user Tvrdy in the Microsoft SharePoint tech community. It the example posted on there, the issue seemed to be related to lists that are being synced for offline use. List sync allows data to be synced from the cloud to a Windows device, letting you continue to work without an internet connection.

Tick icon indicating a list is being synced for offline availability.

For me, turning off offline client availability did the trick. To do this:

  • Navigate to your problem list > press the cog > list settings
  • Under general settings > press advanced settings
  • Scroll down until you find Offline Client Availability > set this to No
Under advanced settings, turn off offline client availability.

Now your list will let you enter a date in the correct format and submit.

Once offline client availability is switched off, date fields can be entered in the desired format.

Additional information

  • In my example, my list wasn’t actually showing that is was syncing – but making the change to the offline availability still made the date column work in my list.
  • Once the change was made to one list, I didn’t get the issue in any other lists within the site, which is strange as the solution is a list specific setting. At present time of writing I’ve not actually been able to reproduce the issue in my tenant.
  • There is a list of common issues with syncing Microsoft SharePoint lists that can be found here.
  • You can stop syncing from the Lists app too, just press the three dots … beneath your list and press stop syncing

4 responses to “SharePoint list date error based on regional settings – how to fix”

  1. Martin Laplante Avatar
    Martin Laplante

    This is one of the many problems of Lists caching and language or locale. If you have OneDrive sync installed, it also installs the SharePoint list sync program “Project Nucleus”. This program listens on localhost:42050 and stores its data in a SQLite db file on your hard drive. If the program is running, SharePoint and Lists will query it for lists instead of going to SharePoint Online. SQLite does not have a date type so dates are stored as text. That means they get converted to from and to date formats based on what it believes to be the locale.

    SharePoint’s date locale may be based on the browser or the OS locale in some instances, in which case Project Nucleus gets it right, but in most instances it will be based on the user profile or the site settings, which Project Nucleus does not know about. If the locale setting at the time the list item was cached does not match the locale setting at the time the item is retrieved from cache, you can get an error. If you are likely to change your locale, it is best to turn off caching, since Project nucleus is unaware of the fact that the locale has changed, and could, for instance, invert the month and day.

    1. Great insight Martin, thanks for the comment!

  2. Thank you for the fix. Does this fix also help Excel documents that use the date column? I’ve found when extrapolating data from a SharePoint list into an Excel list, the date format is different. People in my organization have been complaining that this causes them issues.

    1. Hi, thanks for the comment. I haven’t tried Excel, but it’s worth giving it a go. Also worth checking your regional settings to make sure they are in the correct locale

Leave a Reply

Recent posts

Discover more from SharePoint Stuff

Subscribe now to keep reading and get access to the full archive.

Continue reading