How do I extract the scheduler header date? I am able to set the format but i cannot print the date on the header
Hi,
As I understand the question, you need to use day_date template to change the date in the header.
https://docs.dhtmlx.com/scheduler/day_view_templates.html
I only want to print the current day_date value in PHP. How do i access the value?
I tried to print the value to the console, but i get the current date as well as the following 7 dates
scheduler.templates.day_date = function(date){
var formatFunc = scheduler.date.date_to_str(scheduler.config.default_date);
console.log(formatFunc(date));
return formatFunc(date);
};
I only want to print 6 Mar 2019
You need to update formatFunc according to your requirements. Use date_to_str to set required format
https://docs.dhtmlx.com/scheduler/date_formats.html#convertingadateobjecttoastring
Please check the example how it might be implemented http://snippet.dhtmlx.com/718e01b2f