+ 1

How do u display the date on the screen?

15th Dec 2016, 5:31 AM
DecoBang
DecoBang - avatar
2 Respuestas
+ 4
Instantiate a Date object And then you can call several methods, to get minutes, seconds, hours, month from this date var now = new Date(); alert(" "+now.getHours()+" : "+now.getMinutes()+" "); //opens popup with current time
15th Dec 2016, 5:44 AM
GoGonania
GoGonania - avatar
+ 1
ok thx
15th Dec 2016, 6:00 AM
DecoBang
DecoBang - avatar