How to re-format the `scheduler.templates.*` Dates

How can I reformat the scheduler.templates.week_date to “%M %j %Y ‐ %M %j %Y”?

How can I reformat the scheduler.templates.day_date to “%M %j %Y”?

How can I reformat the scheduler.templates.day_scale_date to “%M %j %Y”?

Thank you

Hello,

Please, use the date_to_str method:

scheduler.templates.week_date = function(start, end){
var formatFunc = scheduler.date.date_to_str("%M %j %Y");
    return formatFunc(start)+" – "+ formatFunc(end);
};

https://docs.dhtmlx.com/scheduler/api__scheduler_date_other.html
https://docs.dhtmlx.com/scheduler/date_formats.html

Perfect. Thank you @Polina!