Siebel eScript Language Reference > Methods Reference > Date and Time Methods >

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()

Example

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());

Siebel eScript Language Reference Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Legal Notices.