This is what I get in chrome console. I pass \"2016-09-05\"(YYYY-MM-DD) as the date and it shows me Sept 4,2016 as the date.
Another constructor shows the
use setFullYear the syntax is Date.setFullYear(year,month,day)
mydate = new Date(); mydate.setFullYear(2016, 08, 05);