To get the time part in the format hh:MM:ss
, you can use this regular expression:
(This was mentioned above in same post by someone, thanks for that.)
var myDate = new Date().toTimeString().replace(/.*(\d{2}:\d{2}:\d{2}).*/, "$1");_x000D_
console.log(myDate)
_x000D_