Version

GetRange(CalendarType,DateTime,DateTime) Method

Gets the accepted date range based on the specified calendar type.
Syntax
'Declaration
 
Public Sub GetRange( _
   ByVal calendarType As CalendarType, _
   ByRef start As Date, _
   ByRef end As Date _
) 
public void GetRange( 
   CalendarType calendarType,
   out DateTime start,
   out DateTime end
)

Parameters

calendarType
The calendar type in which to get the accepted date range.
start
Out parameter which will contain the inclusive start date of the accepted date range.
end
Out parameter which will contain the exclusive end date of the accepted date range.
Exceptions
ExceptionDescription
System.ComponentModel.InvalidEnumArgumentExceptioncalendarType is not defined in the CalendarType enumeration.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also