/
hour
hour
Description
Returns the hour of the provided date: 0-23.
Parameters
Return Type
Number
Examples
Example 1
print("Hour is " + hour(currentDate()));
Example 2
date varDateTime = "2011-08-17T18:30:55";
print("Hour is " + hour(varDateTime));
Print Hour is 18
See also
Related content
Date and Interval Functions
Date and Interval Functions
Read with this
hour
More like this
parseDate
parseDate
Read with this
hour
More like this
getWorkingInterval
getWorkingInterval
Read with this
minute
More like this