Share via


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)

Syntax

'Declaration
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)
public SimpleDate fixYear(
    SimpleDate cDate
)

Parameters

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.

See also

Reference

DateOptions class

DateOptions members

Microsoft.SharePoint.Utilities namespace