SP.RegionalSettings.firstWeekOfYear 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_firstWeekOfYear ()

Return value

Undefined

REST resource endpoint

Endpoint URI structure

http://<sitecollection>/<site>/_api/web/RegionalSettings/firstWeekOfYear

HTTP requests

This resource supports the following HTTP commands:

  • POST

POST syntax

POST http://<sitecollection>/<site>/_api/web/RegionalSettings/firstWeekOfYear

GET syntax

GET http://<sitecollection>/<site>/_api/web/RegionalSettings/firstWeekOfYear

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.