1// There are two flavours
2const event = new Date(1993, 6, 28, 14, 39, 7);
3
4// The Old Skool Flava
5console.log(event.toString());
6// expected output: Wed Jul 28 1993 14:39:07 GMT+0200 (CEST)
7// (note: your timezone may vary)
8
9// The Hipster way ;)
10console.log(event.toDateString());
11// expected output: Wed Jul 28 1993
1var options = { weekday: 'long', year: 'numeric', month: 'long', day: 'numeric' };
2var today = new Date();
3
4console.log(today.toLocaleDateString("en-US")); // 9/17/2016
5console.log(today.toLocaleDateString("en-US", options)); // Saturday, September 17, 2016
6console.log(today.toLocaleDateString("hi-IN", options));