The reference contains descriptions and examples of all Date properties and methods. If you want today’s date, you can simply write the following line. How to initialize a JavaScript Date to a particular time zone. If you like GeeksforGeeks and would like to contribute, you can also write an article using or mail your article to [email protected] See your article appearing on the GeeksforGeeks main page and help other Geeks. Convert the Date into msec since Jan 1, 1970. However, constructors and methods such as parse () function, getHour (), setHour (), etc. Datejs. How to set the default value for an HTML