Skip to main content

day_date

Description

Sets the date format for the X-Axis of the Week and Units views

day_date: string

Example

scheduler.config.day_date = "%F %j";
...
scheduler.init('scheduler_here', new Date(2013, 7, 5), "week");

Default value: "%D, %F %j"

Applicable views: Week view, Units view

Details

weekView_properties

The config will take effect only if it is applied before the first initialization of the scheduler:

scheduler.config.day_date = "%F %j";
scheduler.init('scheduler_here', new Date(2020, 7, 5), "day");

If you want to change the date format after the initialization, you need to redefine the day_date template:

var formatDayDate = scheduler.date.date_to_str("%F %j");
scheduler.templates.day_date = function(date) {
return formatDayDate(date);
};
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.