Traditional Culture Encyclopedia - The 24 Solar Terms - Js gets the current solar terms
Js gets the current solar terms
var month = curr time . getmonth()+ 1; //Get the month of the current time. The month starts from 0, so you need to add 1.
var day = curr time . getdate(); ? //Get the date of the current time
var hour = curr time . get hours(); //Get the hour of the current time
var minute = curr time . get minutes(); //Get the minute of the current time.
var second = curr time . get seconds(); //Get the seconds of the current time
Extended data
mydate . getyear(); //Get the current year (2 digits)
mydate . get full year(); //Get the complete year (4 digits, 1970-)
mydate . getday(); ? //Get the current week X(0-6, 0 stands for Sunday)
mydate . get milliseconds(); //Get the current number of milliseconds (0-999)
mydate . tolocaledatestring(); ? //Get the current date
var my time = mydate . tolocaletimestring(); ? //Get the current time
- Previous article:Good morning in summer.
- Next article:What does the fireworks in March mean?
- Related articles
- The glory of the king, what kind of skin looks best?
- Rainwater solar terms should nourish the liver and spleen, so how to nourish the spleen and stomach?
- What traditional food does Xiaoxue eat? What are the dietary customs of Xiaoxue solar terms?
- Why are the 24 solar terms, totaling 360 days and 365 days a year, roughly balanced with the solar calendar over time?
- What does the fault code u3ff of Dongfeng Peugeot 508 mean?
- 13 What are the traditional foods for the Dragon Boat Festival?
- What is the cost of raising 100 EMUs?
- How to write the introduction of green poster works for low-carbon life? Text content of low-carbon environmental protection handwritten newspaper
- Music festival atmosphere
- What to eat at the beginning of the winter festival?