Handle click on week_scale_date

I would like to handle clicks on week_scale_date. I know there is a template for it:

scheduler.templates.week_scale_date = function(date) { return format(date); };

But how can I execute my custom code when user clicks on this header and also pass the date? I need something like this:

scheduler.templates.week_scale_date_click = function(date) { my_custom_function(date); };

Hello,
currently there is no built-in method.
You can put the related date into the attributes of scale elements and manually attach a click handler to scheduler container, please see the demo
docs.dhtmlx.com/scheduler/snippet/5afb4a3f

Thanks this helped!!