Bookshelf Home | Contents | Index | PDF |
Siebel eScript Language Reference > Methods Reference > Date and Time Methods > Convert Date String to Date Object MethodThe Convert Date String to Date Object method converts a date string to a date object. It returns a date object that includes the date in the dateString argument. FormatTable 62 describes the arguments for the Convert Date String to Date Object method. UsageTo call the Convert Date String to Date Object method, you use the date constructor rather than a variable. You must use the following format:
The last number in the string is the offset from Greenwich mean time. The following items use this format: You can omit the day of the week, time zone, time specification, and seconds field. For example, consider the following code: var aDate = Date.parse(dateString); This code is equivalent to the following code: var aDate = new Date(dateString); ExampleThe following example results in a value of 9098766000: var aDate = Date.parse("Friday, October 31, 1998 15:30:00 -0220"); |
Siebel eScript Language Reference | Copyright © 2018, Oracle and/or its affiliates. All rights reserved. Legal Notices. | |