dateToStr of Date, Methods Webix Docs
creates a new date formatting method
function dateToStr(string|function format, [boolean utc] );
| function | a formatting function |
Example
var myformat = webix.Date.dateToStr("%m - %d");
var text = myformat(new Date());
// or directly
{
view:"datepicker",
format: webix.Date.dateToStr("%d/%m/%y")
}
Related samples
See also