DateOptions.fixYear Method
Returns a SimpleDate object that represents a date value that is corrected to conform to the requirements of the current international calendar.
Namespace: Microsoft.SharePoint.Utilities
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
<SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.Struct)> _
Public Function fixYear ( _
cDate As SimpleDate _
) As SimpleDate
'Usage
Dim instance As DateOptions
Dim cDate As SimpleDate
Dim returnValue As SimpleDate
returnValue = instance.fixYear(cDate)
[SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.Struct)]
public SimpleDate fixYear(
SimpleDate cDate
)
Parameters
cDate
Type: Microsoft.SharePoint.Utilities.SimpleDateThe SimpleDate object to evaluate.
Return Value
Type: Microsoft.SharePoint.Utilities.SimpleDate
Returns SimpleDate.
Remarks
When a SimpleDate object is updated as a result of an operation such as the AddYears method, the resulting date may not conform to the requirements of the current international calendar. Use the fixYear method to correct the date to conform to those requirements.