SP.RegionalSettings.calendarType property (sp.js)
Gets or sets the calendar type that is used on the server.
Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013
var value = SP.RegionalSettings.get_calendarType ()
Return value
Undefined
REST resource endpoint
Endpoint URI structure
http://<sitecollection>/<site>/_api/web/RegionalSettings/calendarType
HTTP requests
This resource supports the following HTTP commands:
- POST
POST syntax
POST http://<sitecollection>/<site>/_api/web/RegionalSettings/calendarType
GET syntax
GET http://<sitecollection>/<site>/_api/web/RegionalSettings/calendarType
Remarks
The CalendarType property accepts the following integer values:
0 —? None
1 —? Gregorian
3 —? Japanese Emperor Era
5 —? Korean Tangun Era
6 —? Hijri
7 —? Buddhist
8 —? Hebrew Lunar
9 —? Gregorian Middle East French Calendar
10 —? Gregorian Arabic Calendar
11 —? Gregorian Transliterated English Calendar
12 —? Gregorian Transliterated French Calendar
16 —? Saka Era
If the property is set to any other value, the Gregorian calendar is used.