Windows Dev Center

DatePicker.monthPattern property

Applies to Windows only

Gets or sets the display pattern for the month.

Syntax


<div data-win-control="WinJS.UI.DatePicker" data-win-options="{ monthPattern : value}" />


var monthPattern = datePicker.monthPattern;
datePicker.monthPattern = monthPattern;

Property value

Type: String

The display pattern for the month. The default month pattern is month.abbreviated. You can change the month pattern to the following values:

month.full

The full name of the month.

month.abbreviated(n)

You can use abbreviated with or without specifying the number of letters in the abbreviation. If you do specify the number of letters, the actual length of the month name that appears may vary.

month.solo.full

A representation of the month that is suitable for stand-alone display. You can also use month.solo.abbreviated(n).

month.integer(n)

You can use integer with or without specifying the number of integers.

Examples

The following code shows how to set a month pattern.


datePicker.monthPattern = "{month.full}";

Requirements

Minimum supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Minimum supported phone

None supported

Namespace

WinJS.UI

Library

Winjs.js

See also

DatePicker

 

 

Show:
© 2015 Microsoft