Updating Regional Settings of a Web Site in SharePoint

This sounds like a simple thing right? Just set the Locale of the SPWeb object to the locale you are interested in. Not so fast – this does not work, it will change the Locale but not things like the calendar being used. What you have to do is to create a new instance of SPRegionalSettings and set a few properties like LocaleId, CalendarType and Time24.

Here is a code snippet that does just this:
CultureInfo ci = new CultureInfo(your culture);
SPRegionalSettings rs = new SPRegionalSettings(web, false);
rs.LocaleId = (uint)ci.LCID;
rs.Time24 = rs.GetDefaultTime24((uint)ci.LCID);
rs.CalendarType = (short)rs.GetDefaultCalendarType(ci.LCID);
web.RegionalSettings = rs;
I spent several hours trying to figure this out, so I hope this will help someone else trying to do the same.

All SharePoint Versions

The web parts are functional components that extend your SharePoint environment whether it’s hosted, on-premises, or part of Microsoft® Office 365.

SharePoint 2013, 2016, 2019, Online (Office 365)

On-Premises Only

These web parts extend SharePoint beyond its out-of-the-box capabilities by tailoring it to your requirements with Bamboo Solution’s growing portfolio of SharePoint Web Parts.

SharePoint 2013, 2016, 2019


Product Suites

Experience greater power and savings by bundling our SharePoint apps and web parts.

Essentials Suite

Essentials Plus Suite

Bamboo Premier Suite

Project Management Suite

Knowledge Management Suite

External User Manager


For more information on our product suites, contact us.

Featured Services

SharePoint Health Check

A SharePoint Health Check will identify the causes of issues and risks associated with your specific environment, and is custom tailored to provide you with the best recommendations to optimize your SharePoint environment.

SQL Health Check

Document recommendations relating to performance, stability, availability, or a specific focus you request of your SQL Server database instances.

My SharePointXperts

The truth is that each SharePoint skill may not be a full time job for many organizations, and it is nearly impossible for one person to do everything you need – so augment your team with SharePointXperts; providing the skill sets you need when you need them!