Date toTimeString()
toTimeString() displays the date's hours, minutes, seconds, and time zone.
<!DOCTYPE html>
<html>
<head>
<title>Example</title>
<script type="text/javascript">
var aDate = new Date(Date.UTC(2021, 5, 4, 12, 21, 55));
document.writeln(aDate.toTimeString());
</script>
</head>
<body>
</body>
</html>