SP.RegionalSettings.showWeeks property (sp.js)

Gets or sets a Boolean value that specifies whether to display the week number in day or week views of a calendar.

Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013

var value = SP.RegionalSettings.get_showWeeks ()

Return value

Undefined

REST resource endpoint

Endpoint URI structure

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

HTTP requests

This resource supports the following HTTP commands:

  • POST

POST syntax

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

GET syntax

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

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.