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

Get Time Method


The Get Time method returns the number of milliseconds for a date object. It returns this value as an integer. This integer includes the number of seconds between midnight on January 1, 1970, GMT, and the date and time that the date object specifies.

Format

dateVar.getTime()

Example

The following example returns a value of 245594000. To convert this value to a value that a person can interpret, you can use the Convert Date and Time to String method or the Convert Date to GMT String Method method:

var aDate = new Date("January 3, 1970 12:13:14");
TheApplication().RaiseErrorText(aDate.getTime());

Related Topics

For more information, see the following topics:

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