Click or drag to resize

YearMonthDay Methods

The YearMonthDay type exposes the following members.

Methods
  NameDescription
Public methodCompareTo(Object)
Compares this instance with another instance of the same type.
Public methodCompareTo(YearMonthDay)
Compares this instance with another instance of the same type.
Public methodStatic memberDaysInMonth
Provides the number of days in the month of the indicated year.
Public methodStatic memberDaysInYear
Provides the number of days in the indicated year.
Public methodEquals(Object)
Indicates whether another object is exactly equal to this instance.
(Overrides ValueTypeEquals(Object).)
Public methodEquals(YearMonthDay)
Indicates whether another instance of this type is exactly equal to this instance.
Public methodGetHashCode
Returns a hash code for this instance, which is suitable for use in hashing algorithms and data structures like a hash table.
(Overrides ValueTypeGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStatic memberIsLeapYear
Indicates whether the year in question is a leap year.
Public methodStatic memberIsValidDate
Indicates whether the year, month, and day are a valid representation.
Public methodToString
Returns a string formatted as Year:Month:Day
(Overrides ValueTypeToString.)
Top
See Also