+ 1

How to time and date display

usefull code are send please

28th Oct 2017, 11:21 AM
hariharan
hariharan - avatar
1 Respuesta
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
12th Nov 2017, 1:09 AM
Augustinas Lukauskas
Augustinas Lukauskas - avatar