OpenTypeMethods.Year Method
Returns the year value of the given DateTime instance.
Namespace: System.Data.Services.Providers
Assembly: Microsoft.Data.Services (in Microsoft.Data.Services.dll)
Syntax
'Declaration
Public Shared Function Year ( _
dateTime As Object _
) As Object
'Usage
Dim dateTime As Object
Dim returnValue As Object
returnValue = OpenTypeMethods.Year(dateTime)
public static Object Year(
Object dateTime
)
public:
static Object^ Year(
Object^ dateTime
)
static member Year :
dateTime:Object -> Object
public static function Year(
dateTime : Object
) : Object
Parameters
- dateTime
Type: System.Object
A DateTime object.
Return Value
Type: System.Object
The year value of the given DateTime instance.