strToDate

creates a new date parsing method

function strToDate(string format, [boolean utc] );
formatstringa date format
utcbooleanconvert a string in UTC time format to a date in local time
functiona formatting function

Example

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

Related samples

See also
Back to top