Creates a new DateTime object from a provided date string.
Namespace: MindFusion.Scheduling
File: DateTime.js
JavaScript 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.
The 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 |