Unit view - showing day of week

Hi,
I would like to show in the Units view the day of the week after the date, which is showing in the middle of the screen.

I tried adding:

scheduler.templates.unit_date = function(date){ return scheduler.templates.day_date(date) + ' ' + scheduler.date.date_to_str(scheduler.config.week_date); };

But this doesn’t seem to work.
Anyone has an idea on how to do it?

Hi,
the scheduler has the same “day_date” for Day and Unit view.
Also, this “day_date” template is used in the Week view. So to get the correct behavior:

scheduler.templates.day_date = function(date){ var spec = ( scheduler.getState().mode == "unit" ? "%d %M %Y %D" : scheduler.config.default_date ); var formatFunc = scheduler.date.date_to_str(spec); return formatFunc(date); };
docs.dhtmlx.com/scheduler/settings_format.html
docs.dhtmlx.com/scheduler/api__s … plate.html

awesome. that worked.
Thank you!