Gets the DateSettings object used to format and display date and time information in the view.
Namespace: MindFusion.Common.UI
File: DateTimeView.js
Syntax
ExampleThe following code uses the formatInfo property to change some of the time and date settings for a DateTimeView object:
JavaScript
Copy Code
|
|---|
| dateTimeView.formatInfo.dateFormats.shortDate = "MM/d/yyyy"; dateTimeView.formatInfo.dateFormats.shortTime = "h:mm tt"; dateTimeView.formatInfo.dateFormats.shortDateTime = "MM/d/yyyy h:mm tt"; dateTimeView.formatInfo.dateFormats.longDate = "dddd, MMMM dd, yyyy"; dateTimeView.formatInfo.dateFormats.longTime = "h:mm:ss tt"; dateTimeView.formatInfo.dateFormats.longDateTime = "dddd, MMMM dd, yyyy h:mm:ss tt"; dateTimeView.formatInfo.dateFormats.dayMonth = "d/MM"; dateTimeView.formatInfo.dateFormats.yearMonth = "MMMM, yyyy"; |
See Also