Calendar Members
Public Fields
![]() CurrentEra Supported by the .NET Compact Framework. | Represents the current era for the current calendar. This field is constant. |
Public Properties
Eras Supported by the .NET Compact Framework. | When overridden in a derived class, gets the list of eras in the current calendar. |
TwoDigitYearMax Supported by the .NET Compact Framework. | Gets or sets the last year of a 100-year range that can be represented by a 2-digit year. |
Public Methods
AddDays Supported by the .NET Compact Framework. | Returns a DateTime that is the specified number of days away from the specified DateTime. |
AddHours Supported by the .NET Compact Framework. | Returns a DateTime that is the specified number of hours away from the specified DateTime. |
AddMilliseconds Supported by the .NET Compact Framework. | Returns a DateTime that is the specified number of milliseconds away from the specified DateTime. |
AddMinutes Supported by the .NET Compact Framework. | Returns a DateTime that is the specified number of minutes away from the specified DateTime. |
AddMonths Supported by the .NET Compact Framework. | When overridden in a derived class, returns a DateTime that is the specified number of months away from the specified DateTime. |
AddSeconds Supported by the .NET Compact Framework. | Returns a DateTime that is the specified number of seconds away from the specified DateTime. |
AddWeeks Supported by the .NET Compact Framework. | Returns a DateTime that is the specified number of weeks away from the specified DateTime. |
AddYears Supported by the .NET Compact Framework. | When overridden in a derived class, returns a DateTime that is the specified number of years away from the specified DateTime. |
Equals (inherited from Object)
Supported by the .NET Compact Framework. | Overloaded. Determines whether two Object instances are equal. |
GetDayOfMonth Supported by the .NET Compact Framework. | When overridden in a derived class, returns the day of the month in the specified DateTime. |
GetDayOfWeek Supported by the .NET Compact Framework. | When overridden in a derived class, returns the day of the week in the specified DateTime. |
GetDayOfYear Supported by the .NET Compact Framework. | When overridden in a derived class, returns the day of the year in the specified DateTime. |
GetDaysInMonth Supported by the .NET Compact Framework. | Overloaded. Returns the number of days in the specified month. |
GetDaysInYear Supported by the .NET Compact Framework. | Overloaded. Returns the number of days in the specified year. |
GetEra Supported by the .NET Compact Framework. | When overridden in a derived class, returns the era in the specified DateTime. |
GetHashCode (inherited from Object)
Supported by the .NET Compact Framework. | Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table. |
GetHour Supported by the .NET Compact Framework. | Returns the hours value in the specified DateTime. |
GetMilliseconds Supported by the .NET Compact Framework. | Returns the milliseconds value in the specified DateTime. |
GetMinute Supported by the .NET Compact Framework. | Returns the minutes value in the specified DateTime. |
GetMonth Supported by the .NET Compact Framework. | When overridden in a derived class, returns the month in the specified DateTime. |
GetMonthsInYear Supported by the .NET Compact Framework. | Overloaded. Returns the number of months in the specified year. |
GetSecond Supported by the .NET Compact Framework. | Returns the seconds value in the specified DateTime. |
GetType (inherited from Object)
Supported by the .NET Compact Framework. | Gets the Type of the current instance. |
GetWeekOfYear Supported by the .NET Compact Framework. | Returns the week of the year that includes the date in the specified DateTime. |
GetYear Supported by the .NET Compact Framework. | When overridden in a derived class, returns the year in the specified DateTime. |
IsLeapDay Supported by the .NET Compact Framework. | Overloaded. Determines whether a date is a leap day. |
IsLeapMonth Supported by the .NET Compact Framework. | Overloaded. Determines whether a month is a leap month. |
IsLeapYear Supported by the .NET Compact Framework. | Overloaded. Determines whether a year is a leap year. |
ToDateTime Supported by the .NET Compact Framework. | Overloaded. Returns a DateTime that is set to the specified date and time. |
ToFourDigitYear Supported by the .NET Compact Framework. | Converts the specified two-digit year to a four-digit year by using the TwoDigitYearMax property to determine the appropriate century. |
ToString (inherited from Object)
Supported by the .NET Compact Framework. | Returns a String that represents the current Object. |
Protected Constructors
Calendar Constructor Supported by the .NET Compact Framework. | Initializes a new instance of the Calendar class. |
Protected Methods
Finalize (inherited from Object)
Supported by the .NET Compact Framework. | Overridden. Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
In C# and C++, finalizers are expressed using destructor syntax. |
MemberwiseClone (inherited from Object)
Supported by the .NET Compact Framework. | Creates a shallow copy of the current Object. |

