JavaScript Date Tutorial
JavaScript facilitates an object especially to get a day, a month, or a year as an output. This object is also called a JavaScript Date object. JavaScript date object constructors Date() Date(milliSeconds) Date(dateString) Date(year, month, day, hours, minutes, seconds, milliSeconds) Example: <html> <body> <script> var date=new Date(); var day=date.getDate(); var month=date.getMonth()+1; var year=date.getFullYear(); document.write(“<br>Today Date: … Read more