DHTMLX Docs & Samples Explorer

getMonthScaleLabel(date)

  • date - {JavaScript Date object}, the date of month for which you should render month label.

returns a string representation of current month for the month scale row; you may override this function to customize the label.

    ganttChart.getMonthScaleLabel = function(date) {
        return this.monthNames[date.getMonth()] + " '" + ("" + date.getFullYear()).substring(2);
    }
 
    ganttChart.create("div15");