Sdílet prostřednictvím


DatePicker.monthPattern property

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 WinJS version

WinJS 1.0

Namespace

WinJS.UI

See also

DatePicker