format_date
Description
Преобразует объект даты в форматированную строку даты. Это полезно для отправки данных даты обратно на сервер.
format_date: (date: Date) => string
Parameters
date- (required) Date - дата, которую необходимо отформатировать
Returns
text- (string) - строковое представление даты
Example
var dateToStr = scheduler.date.date_to_str("%Y-%m-%d %H:%i");
scheduler.templates.format_date = function(date){
return dateToStr(date);
};
Details
Подробнее смотрите в Спецификация формата даты.
Related Guides
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.