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();
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With