Bookshelf Home | Contents | Index | PDF |
Siebel VB Language Reference > VB Language Reference > Weekday FunctionThis standard VB function returns the day of the week for a specified date-time value. SyntaxReturnsAn integer between 1 and 7, inclusive, representing a day of the week, where 1 = Sunday and 7 = Saturday. UsageWeekday accepts any expression, including strings, and attempts to convert the input value to a date value. The return value is a variant of vartype 2 (integer). If the value of date is NULL, a variant of vartype 1 (Null) is returned. ExampleThis example finds the day of the week on which November 7 occurs in the year 2009. Sub Button_Click See AlsoDate Function |
Siebel VB Language Reference |