Date

Introduction

A date is the day of the month or year as specified by a number. Today's date can be displayed.

document.write(days[today.getDay()] + ', ' + today.getDate() + ' ' + months[today.getMonth()] + ' ' + today.getFullYear());

On running the above code, the following output is obtained.