filmov
tv
How to set timer in javascript tamil | How to set live time in html page using javascript tamil

Показать описание
Learn about how to set live time in html page using javascript tamil, how to set timer in my webpage, How to set 12 hours format time on live in webpage, how to set date and time in html page using javscript tamil
Here we can get the date and time using the toLocaleString() function. Date() is default javascript class for finding date and time. in that function we have to set two arguments one is language and another one is time format array object.
var tformat={
hour : 'numeric',
minute : 'numeric',
second : 'numeric',
hour12 : true
};
var lang= 'en-US';
toLocaleString( lang , tformat);
this function will give the 12 hours format time after that we have to call this function every second for that we have to use the setInterval() function.
Here we can get the date and time using the toLocaleString() function. Date() is default javascript class for finding date and time. in that function we have to set two arguments one is language and another one is time format array object.
var tformat={
hour : 'numeric',
minute : 'numeric',
second : 'numeric',
hour12 : true
};
var lang= 'en-US';
toLocaleString( lang , tformat);
this function will give the 12 hours format time after that we have to call this function every second for that we have to use the setInterval() function.