how to ad 24 hours inn current time in js code example
Example 1: javascript get 24 hour time
var date = new Date();
console.log(date.toLocaleString('en-GB'));
Example 2: javascript get 24 hour time
var options = { hour12: false };
console.log(date.toLocaleString('en-US', options));