DateOptions.GetYearString Method
Returns a string representation of the year of the specified date.
Namespace: Microsoft.SharePoint.Utilities
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
<SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.Struct)> _
Public Function GetYearString ( _
simpleDate As SimpleDate _
) As String
'Usage
Dim instance As DateOptions
Dim simpleDate As SimpleDate
Dim returnValue As String
returnValue = instance.GetYearString(simpleDate)
[SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.Struct)]
public string GetYearString(
SimpleDate simpleDate
)
Parameters
simpleDate
Type: Microsoft.SharePoint.Utilities.SimpleDateThe SimpleDate value to evaluate.
Return Value
Type: System.String
A string that contains the year.