Javascript tutorial for beginners | Time in javscript | how to display time in webpage

Опубликовано: 26 Июль 2026
на канале: Sathelli Srikanth
13
0

hello developers welcome Back
in this video we will see how to display time to user in webpage
var d = new Date();
var time = d.getTime();
Return the number of milliseconds since 1970/01/01:

The getHours() method returns the hour (from 0 to 23) of the specified date and time.
var hour = d.getHours();
The getMinutes() method returns the minutes (from 0 to 59) of the specified date and time.
var minute = now.getMinutes();
var second = now.getSeconds();


Guys, Please support my channel by SUBSCRIBE to my channel and share my videos in your Social Network TimeLines.

Don't Forget to Follow me on all Social Network,


Twitter Link:   / srikanthsatheli