from web site
Saturday Sat. You Can Try This Source can be used for getting information from a date item: Approach Description get, Complete, Year() Get the as a 4 digit number (yyyy) get, Month() Get the as a number (0-11) get, Date() Get the as a number (1-31) get, Hours() Get the (0-23) get, Minutes() Get the (0-59) get, Seconds() Get the (0-59) get, Milliseconds() Get the (0-999) get, Time() Get the time (milliseconds since January 1, 1970) get, Day() Get the weekday as a number (0-6) () Get the time.
The get, Time() Technique The get, Time() approach returns the variety of milliseconds since January 1, 1970: The get, Full, Year() Approach The get, Complete, Year() method returns the year of a date as a four digit number: The get, Month() Method The get, Month() technique returns the month of a date as a number (0-11): In Java, Script, the very first month (January) is month number 0, so December returns month number 11.
get, Month()]; The get, Date() Method The get, Date() technique returns the day of a date as a number (1-31): The get, Hours() Technique The get, Hours() method returns the hours of a date as a number (0-23): The get, Minutes() Method The get, Minutes() approach returns the minutes of a date as a number (0-59): The get, Seconds() Approach The get, Seconds() technique returns the seconds of a date as a number (0-59): The get, Milliseconds() Technique The get, Milliseconds() method returns the milliseconds of a date as a number (0-999): The get, Day() Approach The get, Day() approach returns the weekday of a date as a number (0-6): In Java, Script, the very first day of the week (0) suggests "Sunday", even if some countries in the world consider the very first day of the week to be "Monday" You can use an array of names, and get, Day() to return the weekday as a name: Example const days = [" Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]; const d = new Date(); let day = days [d.
The reference contains descriptions and examples of all Date residential or commercial properties and methods.