GMonthDay Constructor (int, int)GMonthDay Constructor (Integer, Integer)GMonthDay Constructor (int, int)

Initializes a new instance of the GMonthDayGMonthDayGMonthDay structure with the specified month and day, but without a time zone.

Syntax

Public Sub New ( _
    month As Integer, _
    day As Integer _
)
public GMonthDay(
    int month,
    int day
)
public:
GMonthDay(
    int month, 
    int day
)
 

Parameters

month

Type: System.Int32System.Int32System::Int32

The month of the year.

day

Type: System.Int32System.Int32System::Int32

The day of the month.

Exceptions

ExceptionCondition
ArgumentOutOfRangeExceptionArgumentOutOfRangeExceptionArgumentOutOfRangeException month is outside the range 1 to 12, or day is not a valid day in the specified month.