Returning current hour

Issue
Function to return the current hour of the day

Solution

To return the result into a control:

[Control Name] = new Date().getHours();
 
To return the result into a variable:

[var_VARIABLENAME] = new Date().getHours();