JavaScript Date Properties

About This Index
This page is the JavaScript Date Properties index for the tutorial track. Date stores one timestamp inside the object. You read the calendar parts with methods, not with fields named year or month.
Learn what a Date is on /js/date. Functions such as getFullYear() and toISOString() live on the Date Methods index.
birthday.constructor and Date.length are values. birthday.getFullYear() is a method, so it needs parentheses.
How to Read a Date Property
Properties are values. No parentheses:
const birthday = new Date(2026, 0, 15);
birthday.constructor === Date; // true
Date.prototype.getFullYear; // the method function
Date.length; // 7
Date.name; // "Date" JavaScript Date Properties Table
Properties on a Date value and on the Date function (4 entries).
Instance properties
1 propertyRead this on a date you created with new Date(). Year, month, and day come from methods, not properties.
| Property | Description | Guide |
|---|---|---|
constructor | The function that created the date. For an object from new Date(), constructor is Date. | Open |
Static properties
3 propertiesRead these on Date itself.
| Property | Description | Guide |
|---|---|---|
prototype | Shared object where getFullYear(), toISOString(), setDate(), and the other Date methods live. | Open |
[Symbol.toPrimitive] | Converts a Date to a primitive value when coercion needs a number or string. | Open |
[Symbol.toStringTag] | Default string tag used by Object.prototype.toString() for Date instances. | Open |
Frequently Asked Questions
Read the calendar with methods
Year, month, and day are getters. Open the methods index.
CODETOFUN NEWS
Stay Ahead in Tech
Get the latest IT news, programming updates, and technology trends directly on your phone.
Your daily dose of tech, straight to your feed.
8 people found this page helpful
