javascript actual time code example
Example 1: current time in javascript
new Date().toLocaleString();
>> "09/08/2014, 2:35:56 AM"
Example 2: javascript current date time
var today = new Date().toLocaleDateString(undefined, {
day: '2-digit',
month: '2-digit',
year: 'numeric',
hour: '2-digit',
minute: '2-digit',
second: '2-digit'
})