change date format of variable in javascript code example Example: change date format javascript var d = new Date("2015/03/25");