SP.RegionalSettings.collation property (sp.js)
Gets or sets the first week of the year 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_collation ()
Return value
Undefined
REST resource endpoint
Endpoint URI structure
http://<sitecollection>/<site>/_api/web/RegionalSettings/collation
HTTP requests
This resource supports the following HTTP commands:
- POST
POST syntax
POST http://<sitecollection>/<site>/_api/web/RegionalSettings/collation
GET syntax
GET http://<sitecollection>/<site>/_api/web/RegionalSettings/collation
Remarks
The FirstWeekOfYear property throws an exception if the value is not between 0 and 2.
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.