JavaScript Date
Date methods for working with dates and times. This category documents 43 JavaScript date entries, and each page gives you the full syntax, the parameter list, the return value, a runnable example, time complexity, the TypeScript signature, and the mistakes developers most often make with that API. The entries are: Date.now(), Date.parse(), Date.UTC(), Date.prototype.getFullYear(), Date.prototype.getMonth(), Date.prototype.getDate(), Date.prototype.getDay(), Date.prototype.getHours(), Date.prototype.getMinutes(), Date.prototype.getSeconds(), Date.prototype.getMilliseconds(), Date.prototype.getTime(), Date.prototype.getTimezoneOffset(), Date.prototype.setFullYear(), Date.prototype.setMonth(), Date.prototype.setDate(), Date.prototype.setHours(), Date.prototype.setMinutes(), Date.prototype.setSeconds(), Date.prototype.toISOString(), Date.prototype.toJSON(), Date.prototype.toDateString(), Date.prototype.toTimeString(), Date.prototype.toLocaleDateString(), Date.prototype.toLocaleTimeString(), Date.prototype.valueOf(), Date.prototype.getUTCFullYear(), Date.prototype.getUTCMonth(), Date.prototype.getUTCDate(), Date.prototype.getUTCDay(), Date.prototype.getUTCHours(), Date.prototype.getUTCMinutes(), Date.prototype.getUTCSeconds(), Date.prototype.setUTCFullYear(), Date.prototype.setUTCMonth(), Date.prototype.setUTCDate(), Date.prototype.setUTCHours(), Date.prototype.setUTCMinutes(), Date.prototype.setUTCSeconds(), Date.prototype.toUTCString(), and more. For a structured walkthrough of the whole topic, read the Date guide. Not sure which method you need? Date.now() and Date.parse() are the most commonly used starting points in this category. You can also search across every category from the search page or browse the complete A–Z index.