Classic ASP VbScript Hour function of Date Time functions returns the hour value from the specified time string. VbScript Hour function accepts 1 parameter as date time or string value and returns the "hh" or "HH" time interval from the specified time value. Following are some of the supported time formats for VbScript Hour function:
1. hh:mm tt
2. hh:mm:ss tt
3. HH:mm
4. mm/dd/yyyy hh:mm tt
5. mm/dd/yyyy HH:mm
Try the sample below to understand the functionality of VbScript Hour function by passing the time string value similar to above formats: