1// new Date parameters in javascript
2new Date(year, month, date, hours, minutes, seconds, ms)
1new Date();
2// Sat Jan 16 2021 22:08:57 GMT-0500 (Eastern Standard Time)
3Date.now();
4// 1610852869057 -> Seconds passed since Jan 1,1970
5
6// Set the date
7new Date(year, month, day hours, minutes, seconds, milliseconds)
1var date = new Date(); //Will use computers date by default.
2//parameters will specify date you put to input
3var date = new Date(year, month, day, hours, minutes, seconds, milliseconds);