Code has been added to clipboard!

Omitting Zeroes in JavaScript Date

Example
var z = new Date("2018-1-20");