converts date string into a Date object

datestringthe string which need to be parsed


var cfg = scheduler.config;
var strToDate =, cfg.server_utc);
scheduler.templates.parse_date = function(date){
    return strToDate (date);


This function is called from scheduler.load() or scheduler.parse() call to parse the start_date/end_date properties of events, if they are provided in the string format. This function can be redefined if you use a custom format that the default method can't parse. Check Date Format Specification.

Read more about date objects.

See also
Back to top