Creates a new DateTime object from a provided date string.
Namespace: MindFusion.Scheduling
File: DateTime.js
SyntaxJavaScript
Copy Code
|
|---|
function fromDateString (dateString) |
String. The date string to create the DateTime from.
DateTime. The new DateTime object, or null if a DateTime instance cannot be created from the provided string.
ExampleThe following code loads calendar data from a JSON array:
JavaScript
Copy Code
|
|---|
function loadCalendar(data) // traverse the json object and create corresponding items in the calendar schedule |
See Also