+ 1
How to time and date display
usefull code are send please
1 Answer
0
https://www.w3schools.com/jsref/jsref_obj_date.asp
https://www.w3schools.com/js/js_date_methods.asp
To get the current time and date use:
var <variable name> = new Date ();
If you want the time and date to update regularly use:
setInterval (<function to repeat every interval>, <interval length in milliseconds>);
Examples:
https://code.sololearn.com/Wj7Ynwl70YBU/?ref=app
https://code.sololearn.com/WJyKTF7sYVJx/?ref=app