What would be the best way to convert a mysql date format date into a javascript Date object?
mySQL date format is \'YYYY-MM-DD\' (ISO Format).
Building onto Jhurisman's answer. If you would want to set the date's time as well use the following:
var dateParts = mysqlDate;
var timeParts = dateParts[2].substr(3).split(":");
var jsDate = new Date(
dateParts[0],
dateParts[1] - 1,
dateParts[2].substr(0,2),
timeParts[0],
timeParts[1],
timeParts[2]
);