Returning current time

Issue
Function to return the current time

Solution

var Today = new Date();
var MyHours = Today.getHours();
var MyMinutes = Today.getMinutes();
var MySeconds = Today.getSeconds();
To return the result into a control:
   [Control Name] = MyHours + ':' + MyMinutes + ':' + MySeconds; 
To return the result into a variable
   var_VARIABLENAME = MyHours + ':' + MyMinutes + ':' + MySeconds;