Class MonthDay
OptimaJet.Workflow.Core.Runtime.Calendars.MonthDay
Represents a day of a month.
Namespace: OptimaJet.Workflow.Core.Runtime.Calendars
public class MonthDayProperties
public Months Month { get; set; } #Gets or sets the month for this day.
public int DayNumber { get; set; } #Gets or sets the day number inside the month.
Methods
public static MonthDay Create(DateTime date) #public static MonthDay Create(int year, Months month, int day) #Creates a MonthDay from separate date components.
Parameters
Name
Type
Description
yearInt32The year component used to validate the day against the month calendar.
dayInt32The day number.
Returns
Type
Description
MonthDayA MonthDay instance that contains the provided month and day.
Exceptions
Type
Description
ArgumentOutOfRangeExceptionyear, month, or day is outside a valid date range.public override bool Equals(object obj) #Determines whether the specified object is equal to this MonthDay.
Parameters
Name
Type
Description
objObjectThe object to compare with this instance.
Returns
Type
Description
Booleanpublic override int GetHashCode() #Returns a hash code for the current MonthDay.
Returns
Type
Description
Int32A hash code based on MonthDay.Month and MonthDay.DayNumber.