Get Hours Method
The Get Hours method returns the hour of a date object. For more information, see Values for Dates and Times.
Format
dateVar.getHours()
The following example returns the number 12, which is the hours portion of the specified time:
var aDate = new Date("October 31, 1986 12:13:14");
TheApplication().RaiseErrorText(aDate.getHours());