Gets or sets the short date-time format string.
Namespace: MindFusion.Common
File: Locale.js
SyntaxJavaScript
Copy Code
|
|---|
get shortDateTime() {} |
String
The short date-time format string.
ExampleThe following code creates a new Locale instance that uses the DateFormats property to initialize the desired date and time formats.
JavaScript
Copy Code
|
|---|
var locale = new Locale("us-2"); locale.dateSettings.dateFormats.shortDate = "MM/d/yyyy"; locale.dateSettings.generate(); calendar.locale = locale; |
See Also