Method of Date
Console.log (document.getElementById); Console.log ([].push); Console.log (typeof Date); // "function"
Instance of date
Console.log (typeof NewDate ());//"Object"Console.log (NewDate ());//get the system time of the machine;varTime =NewDate (); Console.log (Time.getfullyear ());//acquisition time year;Console.log (Time.getmonth ())//Get the time month value range "0-11"Console.log (Time.getdate ());//Get Time Day "1-31"Console.log (Time.getday ());//get the day of the week; "0-6" Sunday is 0;Console.log (Time.gethours ())//gets the number of hours "0-23"Console.log (Time.getminutes ());//gets the number of minutes "0-59"Console.log (Time.getseconds ());//get time Seconds "0-59" Console.log (Time.getmilliseconds ());//gets the number of milliseconds "0-999"Console.log (Time.gettime ());//The current time is eight milliseconds from the morning of 1970-1-1;Console.log (Date.now ());//time stamp:
JavaScript Basics (Method of Date)