SP.RegionalSettings.firstDayOfWeek property (sp.js)
Gets or sets the first day of the week used in calendars on the server.
Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013
In this article
REST resource endpoint
Remarks
Alert
var value = SP.RegionalSettings.get_firstDayOfWeek ()
Return value
Undefined
REST resource endpoint
Endpoint URI structure
http://<sitecollection>/<site>/_api/web/RegionalSettings/firstDayOfWeek
HTTP requests
This resource supports the following HTTP commands:
- POST
POST syntax
POST http://<sitecollection>/<site>/_api/web/RegionalSettings/firstDayOfWeek
GET syntax
GET http://<sitecollection>/<site>/_api/web/RegionalSettings/firstDayOfWeek
Remarks
The FirstDayOfWeek property throws an exception if the value is not between 0 and 6.
Alert
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.