strToDate

creates a new date parsing method

function strToDate(string format, [boolean utc] );
format
stringa date format utc
booleanconvert 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
  • API
  • Articles
  • 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.