I was looking at the ISO8601 that talks about the format of string
passed as argument to object date .
On this site, the date returned is from yesterday.
I'mpassingthe'2017-08-03'valuetothedateobjectanditreturnsmethedatefromyesterday,see:
data = '2017-08-03'
console.log(new Date(data));