Wijmo UI for the Web
format Field
wijmo.input Namespace > IPicker Interface : format Field

Determiens the order and the text display for the picker. The default value is according to culture.

Syntax
var instance; // Type: wijmo.input.IPicker;
var value; // Type: string
value = instance.format;
var format : string;
Example
$(".selector").wijinputdate({
pickers: {
  datePicker: {format: "yyyy,MMMM,dd"}, 
  timePicker: {format: "tt,hh,mm"}
});
Remarks
As default, the rolls in the picker display according to culture, for example, display as year, month, day in ja culture, and month, day, year in en culture. <br /> And, the text display on a field depends on the culture too. <br /> Year part's range is 100 years, it will be (current year - 50) to (current year + 50). User can also customize the order and text of the rolls use the format options. The picker's format must include 3 parts, for datePicker, it is year, month and day, and for timepicker, it is ampm, hour and minute. <br /> Each part has possible values, if the format is invalid (don't include 3 parts or format is invalid), the picker will display as default according to the culture. <br /> Currently, the following standard are supported. <br /> "yyyy" : Display the year as a 4-digit number (0100 - 9999). <br /> "M" : Display the month as a number without a leading zero (1 - 12). <br /> "MM" : Display the month as a number with a leading zero (01 - 12). <br /> "MMM" : Display the month defined by the DateTimeFormatInfo.AbbreviatedMonthNames() property associated with the current thread or by a specified format provider. <br /> "MMMM" : Display the month defined by the DateTimeFormatInfo.MonthNames() property associated with the current thread or by a specified format provider. <br /> "d" : Display the day as a number without a leading zero (1 - 31). <br /> "dd" : Display the day as a number with a leading zero (01 - 31). <br /> "t" : Displays the first character of the A.M./P.M. designator. <br /> "tt" : Displays the A.M./P.M. designator. <br /> "h" : Display the hour as a number without leading zeros (0 - 11) in 12 hour mode. <br /> "hh" : Display the hour as a number with leading zeros (00 - 11) in 12 hour mode. <br /> "m" : Display the minute as a number without leading zeros (0 - 59). <br /> "mm" : Display the minute as a number with leading zeros (00 - 59). <br />
See Also

Reference

IPicker Interface