Documentation

dateToStr

creates new date formatting method

function dateToStr(string format,boolean utc);

Parameters

formatstringdate format
utcbooleanconvert local time to UTC during conversion

Returns

functionformatting function

See also

Example

var myformat = webix.date.dataToStr("%m - %d");
var text = myformat(new Date());
 
//or directly
{view:"datepicker", 
 format: webix.Date.dateToStr("%d/%m/%y")
 }

Back to top