Bookshelf Home | Contents | Index | PDF |
Siebel VB Language Reference > VB Language Reference > Year FunctionThis standard VB function returns the year component of a date-time value. SyntaxReturnsAn integer between 100 and 9999, inclusive. UsageYear accepts any type of date, 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 returns the year for today. Sub Button_Click See AlsoDate Function |
Siebel VB Language Reference |