strToDate

creates a new date parsing method

function strToDate(string format,boolean utc);

Parameters

formatstringa date format
utcbooleanconvert a string in UTC time format to a date in local time

Returns

functiona formatting function

Example

var myparse = webix.Date.strToDate("%m - %d");
var date = myparse("04 - 22");

Related samples

See also
Back to top