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(); }
548k questions
547k answers
4 comments
86.3k users