Customize month_day in month view

hello,

I want to customize month_day; if date is the first day of month , i will display “3月1日” other day of month will be displayed is “2”, “3”,…

Please help me how to do that.

Thanks.

Try this date formatting template:

scheduler.templates.month_day =function(date){
var day = date.getDate(); //get day
if (day == 01){ // check if first day of the month
return ‘1st day’; //if first month return your what you need to show
}
else return day; //on other day return default day
}

you can add multiple ifs & return whatever you like as the month_day header.

Regards