Visual Basic 2005 in a Nutshell (In a Nutshell (OReilly))
|
|
Class
Microsoft.VisualBasic.DateAndTime Syntax
Dim result As Integer = Year(dateValue)
Description
The Year function returns a value representing the year of the supplied date. Usage at a Glance
With OptionStrict set to On, the source value must first be converted to a Date data type. You can use the CDate function for this purpose. The IsDate function can also be used to confirm that the source expression is a valid date. See Also
DatePart Function, Day Function, Month Function |
|
|