java script get current time in string code example
Example 1: javascript get current time
var today = new Date();
var time = today.getHours() + ":" + today.getMinutes() + ":" + today.getSeconds();
Example 2: javascript get Time
var d=new Date();
d.getTime();//I'm in milliseconds, divide by 1000 for seconds