Sunday, October 20, 2013

cast the value of a date type HTML control to a JavaScript date

var day = this.required.get("value").split("-");
var whatever = new Date(parseInt(day[0]),(parseInt(day[1])-1),parseInt(day[2]));

No comments:

Post a Comment