The Date object allows us to work with date. A date consists of a year, a month, a day, an hour, a minute, a second, and milliseconds.