SPRegionalSettings.AdjustHijriDays property

Gets or sets the number of days to extend or reduce the current month in Hijri calendars.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

public short AdjustHijriDays { get; set; }

Property value

Type: System.Int16
A 16-bit integer that specifies the number of days.

The following code example reduces the current month in the Hijri calendar for a Web site by 1.

using (SPSite oSiteCollection = new SPSite("http://localhost"))
    using(SPWeb oWebsiteRoot = oSiteCollection.RootWeb)
        SPRegionalSettings oRegionalSettings = oWebsiteRoot.RegionalSettings; 
        oRegionalSettings.AdjustHijriDays = -1; 

Certain objects implement the IDisposable interface, and you must avoid retaining these objects in memory after they are no longer needed. For information about good coding practices, see Disposing Objects.