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