Answers for "get time from a date time in jquery"

0

get time from a date time in jquery

$(document).ready(function() {
    var today = new Date();
    var cHour = today.getHours();
    var cMin = today.getMinutes();
    var cSec = today.getSeconds();
    alert(cHour+ ":" + cMin+ ":" +cSec );
});
Posted by: Guest on August-27-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language