Javascript

JavaScript Intro

JavaScript Intro Quiz

JavaScript Intro Exercise

JavaScript Basic

JavaScript Basic Quiz

JavaScript Basic Exercise

JavaScript Advance

JavaScript Advance Quiz

JavaScript Advance Exercise

JavaScript ES6

JavaScript ES6 Quiz

JavaScript ES6 Exercise

JavaScript Array Methods and Properties

JavaScript String Methods and Properties

JavaScript Number Methods and Properties

JavaScript Math Properties and Methods

JavaScript Date Methods and Properties

JavaScript Global Methods and Properties

JavaScript RegExp Properties and Methods

JavaScript Class Methods and Keywords

JavaScript Errors, JSON and Booleans

JavaScript Statements

JavaScript Window History Object Properties and Methods

JavaScript Window Location Object Properties and Methods

JavaScript Window Screen Object Properties

JavaScript Window Navigator Object Properties and Methods

JavaScript Window Object Properties and Methods

JavaScript Console Object Methods

JavaScript Geolocation and Storage APIs

JavaScript CSSStyleDeclaration Object Methods and Properties

HTML DOM Documents Object Properties and Methods

DOM HTMLCollection Properties and Methods

HTML DOM Attributes Properties and Methods

HTML DOM Elements Properties and Methods

HTML DOM Style Object Properties

HTML DOM AnimationEvent Properties and Methods

HTML DOM ClipboardEvent Properties and Methods

HTML DOM DragEvent Properties and Methods

HTML DOM FocusEvent Properties and Methods

HTML DOM HashChangeEvent Properties and Methods

HTML DOM InputEvent Properties and Methods

HTML DOM KeyboardEvent Properties and Methods

HTML DOM MouseEvent Properties and Methods

HTML DOM PageTransitionEvent Properties and Methods

HTML DOM ProgressEvent Properties and Methods

HTML DOM StorageEvent Properties and Methods

HTML DOM TransitionEvent Properties and Methods

HTML DOM WheelEvent Properties and Methods

HTML DOM UiEvent Properties and Methods

HTML DOM TouchEvent Properties and Methods

The Event Object Properties and Methods

JavaScript Date Methods and Properties

List of JavaScript Date Methods and Properties

Date constructor in JavaScript
The constructor property is used to return the function that created the Date prototype. This property return function Date() { [native code] }.
Date prototype in JavaScript
The prototype property is used to add new properties and methods to dates. It is available for all JavaScript objects.
Date getDate() in JavaScript
The getDate() method is used to return the day of the month i.e, 1 to 31 of the date.
Date getDay() in JavaScript
The getDay() method is used to return the day of the week i.e, from 0 to 6 of the date. Here, 0 is Sunday and 6 is Saturday.
Date getFullYear() in JavaScript
The getFullYear() method is used to return the full year 4 digits of a date.
Date getHours() in JavaScript
The getHours() method is used to return the hour of date from 0 to 23.
Date getMilliseconds() in JavaScript
The getMilliseconds() method is used to return the milliseconds of a date i.e, from 0 to 999.
Date getMinutes() in JavaScript
The getMinutes() method is used to return the minutes of a date i.e, from 0 to 59.
Date getMonth() in JavaScript
The getMonth() method is used to return the month of a date i.e, from 0 to 11. In this, January start from 0 and so on.
Date getSeconds() in JavaScript
The getSeconds() method is used to return the seconds of a date i.e, from 0 to 59.
Date getTime() in JavaScript
The getTime() method is used to return the number of milliseconds from January 1, 1970 00:00:00.
Date getTimezoneOffset() in JavaScript
The getTimezoneOffset() method is used to return the difference between UTC time and local time. It returns the difference in minutes.
Date getUTCDate() in JavaScript
The getUTCDate() method is used to return the day of the month of a date object i.e, from 1 to 31. It returns the value according to UTC.
Date getUTCDay() in JavaScript
The getUTCDay() method is used to return the day of the week of a date i.e, from 0 to 6. It returns value according to universal time.
Date getUTCFullYear() in JavaScript
The getUTCFullYear() method is used to return the year of date according to UTC and in four digits.
Date getUTCHours() in JavaScript
The getUTCHours() method is used to return the hour of date from 0 to 23 according to UTC.
Date getUTCMilliseconds() in JavaScript
The getUTCMilliseconds() method is used to return the milliseconds of date from 0 to 999 according to UTC.
Date getUTCMinutes() in JavaScript
The getUTCMinutes() method is used to return the minutes of date from 0 to 59 according to UTC.
Date getUTCMonth() in JavaScript
The getUTCMonth() method is used to return the month of date from 0 to 11 according to UTC. In this, 0 is for January, 1 is for February, and so on.
Date getUTCSeconds() in JavaScript
The getUTCSeconds() method is used to return the seconds of date from 0 to 59 according to UTC.
Date.now() in JavaScript
The Date.now() method is used to return the number of milliseconds since January 1, 1970. It is a static method of Date Object.
Date parse() in JavaScript
The parse() method is used to parse a date string and returns the time difference since January 1, 1970. Its return value is in milliseconds.
Date setDate() in JavaScript
The setDate() method is used to set the day of the month of a date.
Date setFullYear() in JavaScript
The setFullYear() method is used for setting the year of a date. We can also set a month and day with it.
Date setHours() in JavaScript
The setHours() method is used to set the hour of a date. It can also be used to set minutes, seconds, and milliseconds.
Date setMilliseconds() in JavaScript
The setMilliseconds() method is used to set the milliseconds of a date.
Date setMinutes() in JavaScript
The setMinutes() method is used for setting the minutes of a date. It can also be used to set the seconds and milliseconds.
Date setMonth() in JavaScript
The setMonth() method is used for setting the month of a date object. It can also be used to set the day of the month. In this, 0 is January, 1 is February, and so on.
Date setSeconds() in JavaScript
The setSeconds() method is used for setting the seconds of a date object. It can also be used to set milliseconds.
Date setTime() in JavaScript
The setTime() method is used to set a date and time by adding or subtracting a specified number of milliseconds to/from January 1, 1970, 00:00:00.
Date setUTCDate() in JavaScript
The setUTCDate() method is used to set the day of a Date object according to UTC. It is a static method of Date Object.
Date setUTCFullYear() in JavaScript
The setUTCFullYear() method is used to set the year of a date object according to UTC. It is also used to set the month and date.
Date setUTCHours() in JavaScript
The setUTCHours() method is used for setting the hour of a date object according to UTC. We can also use it to set the minutes, seconds, and milliseconds.
Date setUTCMilliseconds() in JavaScript
The setUTCMilliseconds() method is used for setting the milliseconds of a date object according to UTC from 0 to 999.
Date setUTCMinutes() in JavaScript
The setUTCMinutes() method is used for setting the minutes of a date object according to UTC. It can also be used to set seconds and milliseconds.
Date setUTCMonth() in JavaScript
The setUTCMonth() method is used for setting the month of a date object according to UTC from 0 to 11. We can also use it to set the day of the date.
Date setUTCSeconds() in JavaScript
The setUTCSeconds() method is used to set the seconds of a date object according to UTC. We can also use this method to set milliseconds.
toDateString() Method in JavaScript
The toDateString() method is used to return the date part of a date object as a string. It will skip the time part of the date object.
Date toISOString() in JavaScript
The toISOString() method is used to return a date object as a string using the ISO standard. The format is YYYY-MM-DDTHH:mm:ss.sssZ.
Date toJSON() in JavaScript
The toJSON() method is used to return a date object as a string in a JSON data format. Its format is YYYY-MM-DDTHH:mm:ss.sssZ.
Date toLocaleDateString() in JavaScript
The toLocaleDateString() method is used to return the date part of a date object as a string by using locale conventions. It will skip the time part of the date object.
Date toLocaleTimeString() in JavaScript
The toLocaleTimeString() method is used to return the time part of a date object as a string by using locale conventions. It will skip the date part of the date object.
Date toLocaleString() in JavaScript
The toLocaleString() method is used to return a Date object as a string by using locale settings. In the end, it all depends on the default language set locally on your computer.
Date toTimeString() in JavaScript
The toTimeString() method is used to return the time part of a date object as a string.
Date toUTCString() in JavaScript
The toUTCString() method is used to return a date object as a string according to UTC which is basically Universal Coordinated Time and is the same as GMT time.
Date.UTC() in JavaScript
The Date.UTC() method is used to return the number of milliseconds between a specific date and January 1, 1970, according to UTC.
Date valueOf() in JavaScript
The valueOf() method is used to return the primitive value of a date object. It is a number of milliseconds since January 1, 1970, UTC.