2013, 2, 1
is no valid date that is recognized by Date.parse
. This should work better:
var ms = Date.UTC.apply(Date, this.value.split(",").map(Number));
However, I think it should be easier to store the milliseconds themselves in the option
value, so that you can easily use new Date(parseInt(this.value, 10))