Home HTML CSS JAVASCRIPT BOOTSTRAP Python Docker ML tutorial About us Privacy policy

Date Methods



Date Methods



toUTCString() Method

toUTCString() convrt's date into UTC string format.




toDateString() Method

The toDateString() method convert's date into much more redable format to the users.


Date getter methods


getTime()

getTime() method return's no. of milliseconds.


getFullYear() Method

getFullYear() method return's year of date format.


getMonth() Method

getMonth() return's month of dates in the form of number.


getDate() Method

getDate() return's no. of days in the form of number.

getHours() Method

getHours() method return's no of hours as number format.


getMinutes() Method

getMinutes() method return's no of minutes as number format.


getSeconds() Method

getSeconds() method return's no of seconds as number format.


Date Setter Methods


setFullYear() Method

setFullYear() method use to set year inside Date constructor.


setMonth() Method

setMonth() method use to set Months's inside Date constructor.

setDate() Method

setDate() method use to set day's inside Date constructor.

setHours() Method

setHours() method use to set hour's inside Date constructor.

setMinutes() Method

setMinutes() method use to set minute's inside Date constructor.

setSeconds() Method

setSeconds() method use to set seconds's inside Date constructor.


More Topics