Get Date Using JavaScript

We can get Date using JavaScript built in object Date. In below example we will see how to get date using JavaScript Date object. example to get current date using JavaScript in dd-mm-yyyy format:- var today = new Date(); var day = today.getDate(); var month = today.getMonth()+1; //first month starts from 0 var year = … Read more