how to display a date as 2/25/2007 format in javascript, if i have date object
function formatDate(a) //pass date object { return (a.getMonth() + 1) + "/" + a.getDate() + "/" + a.getFullYear(); }
2.1m questions
2.1m answers
60 comments
57.0k users