showing time way in javascript code example
Example 1: current time in javascript
new Date().toLocaleString();
>> "09/08/2014, 2:35:56 AM"
Example 2: get current time in js
<script>
var today = new Date();
var time = today.getHours() + ":" + today.getMinutes() + ":" + today.getSeconds();
</script>