Gets or sets a value indicating the first day of the week to use.
Namespace: MindFusion.Common
File: Locale.js
SyntaxJavaScript
Copy Code
|
|---|
get firstDayOfWeek() {} |
Number
The index of the first day of the week.
Remarks0 is Sunday, 6 is Saturday.
ExampleThe following code creates a new Locale instance that uses the dateSettings property to specify the desired date and time formats.
JavaScript
Copy Code
|
|---|
var locale = new Locale("us-2"); locale.dateSettings.firstDayOfWeek = 0; locale.dateSettings.dateFormats.shortDate = "MM/d/yyyy"; locale.dateSettings.generate(); calendar.locale = locale; |
See Also