parse dd/mm/yyyy to date javascript code example
Example 1: javascript date parse yyyy-mm-dd
var dateString = "10/23/2015"; // Oct 23
var dateObject = new Date(dateString);
document.body.innerHTML = dateObject.toString();
Example 2: convert date dd/mm/yyyy to date object js
DateParts = data.split("/");
new Date(+DateParts[2], DateParts[1] - 1, +DateParts[0]).setUTCHours(
0,
0,
0,
0
)