DatePicker.monthPattern property

0 out of 2 rated this helpful - Rate this topic

Gets or sets 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.

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.

Examples

The following code shows how to set a month pattern.


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

Requirements

Namespace

WinJS.UI

Library

Ui.js

See also

DatePicker

 

 

Build date: 12/5/2012

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.