Bookshelf Home | Contents | Index | PDF |
Siebel eScript Language Reference > Siebel eScript Commands > Date and Time Methods > getDay() MethodThis method returns the day of the week of a Date object. SyntaxReturnsThe day of the week of dateVar as a number from 0 to 6. UsageThis method returns the day of the week of dateVar. Sunday is 0, and Saturday is 6. To get the name of the corresponding weekday, create an array holding the names of the days of the week and compare the return value to the array index, as shown in the following example. ExampleThis example gets the day of the week on which New Year's Day occurs and displays the result in a message box. function Button1_Click () The result displayed in the message box is: New Year's Day falls on Thursday in 2004. See AlsogetDate() Method |
Siebel eScript Language Reference |