Bookshelf Home | Contents | Index | PDF |
Siebel eScript Language Reference > Siebel eScript Commands > Date and Time Methods > Date.parse() Static MethodThis method converts a date string to a Date object. SyntaxReturnsA Date object representing the date in dateString. UsageDate.parse() is a static method, invoked using the Date constructor rather than a variable. The string must be in the following format:
where the last number is the offset from Greenwich mean time. This format is used by the dateVar.toGMTString() method and by email and Internet applications. The day of the week, time zone, time specification, or seconds field may be omitted. The statement: var aDate = Date.parse(dateString); var aDate = new Date(dateString); ExampleThe following code fragment yields the result var aDate = Date.parse("Friday, October 31, 1998 15:30:00 -0220"); See Also |
Siebel eScript Language Reference |