GMonthDay Constructor (int, int, TimeZone?)GMonthDay Constructor (Integer, Integer, Nullable(Of TimeZone))GMonthDay Constructor (int, int, Nullable<TimeZone>)

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

Syntax

Public Sub New ( _
    month As Integer, _
    day As Integer, _
    timeZone As Nullable(Of TimeZone) _
)
public GMonthDay(
    int month,
    int day,
    Nullable<TimeZone> timeZone
)
public:
GMonthDay(
    int month, 
    int day, 
    Nullable<TimeZone> timeZone
)
 

Parameters

month

Type: System.Int32System.Int32System::Int32

The month of the year.

day

Type: System.Int32System.Int32System::Int32

The day of the month.

timeZone

Type: System.Nullable<T>System.Nullable(Of T)System::Nullable<T>

The optional time zone.

Exceptions

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