scheduler.templates.event_bar_date problem

Hi!
I want to remove the time on all single day events, I used the ff. code, but it is not working.

scheduler.templates.event_bar_date = function(start, end, event){
return " ";
};

Am I doing it wrong?

Result on the month view:

Thanks!

Be sure that you have redefined template before data was loaded in the scheduler
Also, the above template will override date value only for timed events in the month view.

docs.dhtmlx.com/scheduler/month_ … lates.html

Hi!

Here’s my configuration:

    scheduler.config.start_on_monday = false;
    scheduler.config.multi_day = true;
    scheduler.locale.labels.timeline_tab = "Timeline";
    scheduler.locale.labels.section_custom = "Section";
    scheduler.config.details_on_create = true;
    scheduler.config.details_on_dblclick = true;
    scheduler.config.xml_date = "%n/%d/%Y %H:%i";
    scheduler.config.readonly_form = true;
    scheduler.config.readonly = true;
    scheduler.config.show_loading = true;
    scheduler.config.all_timed = true; // set displayed events in "timed" version

    scheduler.templates.tooltip_date_format = scheduler.date.date_to_str("%n/%d/%Y %H:%i");
    scheduler.templates.tooltip_text = function(start, end, event)
    {
        var tooltipTxt = "<b>Ref No.:</b> " + event.RefNo + "<br/>";
        tooltipTxt += "<b>Request Type:</b> " + event.RequestType + "<br/>";
        tooltipTxt += "<b>Title:</b> " + event.Title + "<br/>";
        tooltipTxt += "<b>Start Date:</b> " + scheduler.templates.tooltip_date_format(start) + "<br/>";
        tooltipTxt += "<b>End Date:</b> " + scheduler.templates.tooltip_date_format(end) + "<br/>";

        return tooltipTxt;
    };
    
    scheduler.templates.event_class = function(start, end, event)
    {
        return event.CssClass;
    };

    scheduler.attachEvent("onClick", function(event_id, native_event_object)
    {
        window.open(scheduler.getEvent(event_id).URL);
    });

    scheduler.init("scheduler", null, "month");

Above code doesn’t have event_bar_date template at all.
Try to add the next line before scheduler.init

scheduler.templates.event_bar_date = function(){ return ""; }