dateToStr
creates a new date formatting method
function dateToStr(string|function format, [boolean utc] );
| format | string|function | a date format |
| utc | boolean | convert local time to a string in UTC format |
| 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
Back to top
Join Our Forum
We've retired comments here. Visit our forum for faster technical support,
connect with other developers, and share your feedback there.