Skip to main content

year_month

Description

Specifies the month's name in the header of a month block of the view.

year_month: (date: Date) => string

Parameters

  • date - (required) Date - the date which needs formatting

Returns

  • text - (string) - html text for rendering in the scheduler

Example

const formatMonth = scheduler.date.date_to_str("%F");
scheduler.templates.year_month = function(date){
return formatMonth(date);
};

Applicable views: Year view

Details

note

The template requires the year_view plugin to be activated.

Need help?
Got a question about the documentation? Reach out to our technical support team for help and guidance. For custom component solutions, visit the Services page.