ActiveReports 12
Year Method

GrapeCity.ActiveReports.v12 Assembly > GrapeCity.Enterprise.Data.VisualBasicReplacement Namespace > DateAndTime Class : Year Method
Required. Date value from which you want to extract the year.
Returns an Integer value from 1 through 9999 representing the year.
Syntax
'Declaration
 
Public Shared Function Year( _
   ByVal dateValue As Date _
) As Integer
public static int Year( 
   DateTime dateValue
)

Parameters

dateValue
Required. Date value from which you want to extract the year.

Return Value

Returns an Integer value from 1 through 9999 representing the year.
See Also

Reference

DateAndTime Class
DateAndTime Members