change date into value js code example
Example: js string to date
var myDate = new Date("2013/1/16");
var str = "2013/1/16";
var strToDate = new Date(str);
var myDate = new Date("2013/1/16");
var str = "2013/1/16";
var strToDate = new Date(str);