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
Join Our Forum
We've retired comments here. Visit our forum for faster technical support, connect with other developers, and share your feedback there.