Code has been added to clipboard!

DD/MM/YYYY Format in JavaScript Date

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