Export (0) Print
Expand All

Calendar Members

Calendar overview

Public Fields

public fieldstatic (Shared in Visual Basic)CurrentEra

Supported by the .NET Compact Framework.

Represents the current era for the current calendar. This field is constant.

Public Properties

public propertyEras

Supported by the .NET Compact Framework.

When overridden in a derived class, gets the list of eras in the current calendar.
public propertyTwoDigitYearMax

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

public methodAddDays

Supported by the .NET Compact Framework.

Returns a DateTime that is the specified number of days away from the specified DateTime.
public methodAddHours

Supported by the .NET Compact Framework.

Returns a DateTime that is the specified number of hours away from the specified DateTime.
public methodAddMilliseconds

Supported by the .NET Compact Framework.

Returns a DateTime that is the specified number of milliseconds away from the specified DateTime.
public methodAddMinutes

Supported by the .NET Compact Framework.

Returns a DateTime that is the specified number of minutes away from the specified DateTime.
public methodAddMonths

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.
public methodAddSeconds

Supported by the .NET Compact Framework.

Returns a DateTime that is the specified number of seconds away from the specified DateTime.
public methodAddWeeks

Supported by the .NET Compact Framework.

Returns a DateTime that is the specified number of weeks away from the specified DateTime.
public methodAddYears

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.
public methodEquals (inherited from Object)

Supported by the .NET Compact Framework.

Overloaded. Determines whether two Object instances are equal.
public methodGetDayOfMonth

Supported by the .NET Compact Framework.

When overridden in a derived class, returns the day of the month in the specified DateTime.
public methodGetDayOfWeek

Supported by the .NET Compact Framework.

When overridden in a derived class, returns the day of the week in the specified DateTime.
public methodGetDayOfYear

Supported by the .NET Compact Framework.

When overridden in a derived class, returns the day of the year in the specified DateTime.
public methodGetDaysInMonth

Supported by the .NET Compact Framework.

Overloaded. Returns the number of days in the specified month.
public methodGetDaysInYear

Supported by the .NET Compact Framework.

Overloaded. Returns the number of days in the specified year.
public methodGetEra

Supported by the .NET Compact Framework.

When overridden in a derived class, returns the era in the specified DateTime.
public methodGetHashCode (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.
public methodGetHour

Supported by the .NET Compact Framework.

Returns the hours value in the specified DateTime.
public methodGetMilliseconds

Supported by the .NET Compact Framework.

Returns the milliseconds value in the specified DateTime.
public methodGetMinute

Supported by the .NET Compact Framework.

Returns the minutes value in the specified DateTime.
public methodGetMonth

Supported by the .NET Compact Framework.

When overridden in a derived class, returns the month in the specified DateTime.
public methodGetMonthsInYear

Supported by the .NET Compact Framework.

Overloaded. Returns the number of months in the specified year.
public methodGetSecond

Supported by the .NET Compact Framework.

Returns the seconds value in the specified DateTime.
public methodGetType (inherited from Object)

Supported by the .NET Compact Framework.

Gets the Type of the current instance.
public methodGetWeekOfYear

Supported by the .NET Compact Framework.

Returns the week of the year that includes the date in the specified DateTime.
public methodGetYear

Supported by the .NET Compact Framework.

When overridden in a derived class, returns the year in the specified DateTime.
public methodIsLeapDay

Supported by the .NET Compact Framework.

Overloaded. Determines whether a date is a leap day.
public methodIsLeapMonth

Supported by the .NET Compact Framework.

Overloaded. Determines whether a month is a leap month.
public methodIsLeapYear

Supported by the .NET Compact Framework.

Overloaded. Determines whether a year is a leap year.
public methodToDateTime

Supported by the .NET Compact Framework.

Overloaded. Returns a DateTime that is set to the specified date and time.
public methodToFourDigitYear

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.
public methodToString (inherited from Object)

Supported by the .NET Compact Framework.

Returns a String that represents the current Object.

Protected Constructors

protected constructorCalendar Constructor

Supported by the .NET Compact Framework.

Initializes a new instance of the Calendar class.

Protected Methods

protected methodFinalize (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.

protected methodMemberwiseClone (inherited from Object)

Supported by the .NET Compact Framework.

Creates a shallow copy of the current Object.

See Also

Calendar Class | System.Globalization Namespace

Show:
© 2014 Microsoft