Calendar Methods
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Include Protected Members
Include Inherited Members
Include Silverlight Members
Include Silverlight for Windows Phone Members
Include XNA Framework Members
The Calendar type exposes the following members.
Methods
Name | Description | |
---|---|---|
AddDays | Returns a DateTime that is the specified number of days away from the specified DateTime. | |
AddHours | Returns a DateTime that is the specified number of hours away from the specified DateTime. | |
AddMilliseconds | Returns a DateTime that is the specified number of milliseconds away from the specified DateTime. | |
AddMinutes | Returns a DateTime that is the specified number of minutes away from the specified DateTime. | |
AddMonths | When overridden in a derived class, returns a DateTime that is the specified number of months away from the specified DateTime. | |
AddSeconds | Returns a DateTime that is the specified number of seconds away from the specified DateTime. | |
AddWeeks | Returns a DateTime that is the specified number of weeks away from the specified DateTime. | |
AddYears | When overridden in a derived class, returns a DateTime that is the specified number of years away from the specified DateTime. | |
Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
GetDayOfMonth | When overridden in a derived class, returns the day of the month in the specified DateTime. | |
GetDayOfWeek | When overridden in a derived class, returns the day of the week in the specified DateTime. | |
GetDayOfYear | When overridden in a derived class, returns the day of the year in the specified DateTime. | |
GetDaysInMonth(Int32, Int32) | Returns the number of days in the specified month and year of the current era. | |
GetDaysInMonth(Int32, Int32, Int32) | When overridden in a derived class, returns the number of days in the specified month, year, and era. | |
GetDaysInYear(Int32) | Returns the number of days in the specified year of the current era. | |
GetDaysInYear(Int32, Int32) | When overridden in a derived class, returns the number of days in the specified year and era. | |
GetEra | When overridden in a derived class, returns the era in the specified DateTime. | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetHour | Returns the hours value in the specified DateTime. | |
GetLeapMonth | Calculates the leap month for a specified year and era. | |
GetMilliseconds | Returns the milliseconds value in the specified DateTime. | |
GetMinute | Returns the minutes value in the specified DateTime. | |
GetMonth | When overridden in a derived class, returns the month in the specified DateTime. | |
GetMonthsInYear(Int32) | Returns the number of months in the specified year in the current era. | |
GetMonthsInYear(Int32, Int32) | When overridden in a derived class, returns the number of months in the specified year in the specified era. | |
GetSecond | Returns the seconds value in the specified DateTime. | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
GetWeekOfYear | Returns the week of the year that includes the date in the specified DateTime value. | |
GetYear | When overridden in a derived class, returns the year in the specified DateTime. | |
IsLeapDay(Int32, Int32, Int32) | Determines whether the specified date in the current era is a leap day. | |
IsLeapDay(Int32, Int32, Int32, Int32) | When overridden in a derived class, determines whether the specified date in the specified era is a leap day. | |
IsLeapMonth(Int32, Int32) | Determines whether the specified month in the specified year in the current era is a leap month. | |
IsLeapMonth(Int32, Int32, Int32) | When overridden in a derived class, determines whether the specified month in the specified year in the specified era is a leap month. | |
IsLeapYear(Int32) | Determines whether the specified year in the current era is a leap year. | |
IsLeapYear(Int32, Int32) | When overridden in a derived class, determines whether the specified year in the specified era is a leap year. | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToDateTime(Int32, Int32, Int32, Int32, Int32, Int32, Int32) | Returns a DateTime that is set to the specified date and time in the current era. | |
ToDateTime(Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32) | When overridden in a derived class, returns a DateTime that is set to the specified date and time in the specified era. | |
ToFourDigitYear | Converts the specified year to a four-digit year by using the TwoDigitYearMax property to determine the appropriate century. | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top