Export (0) Print
Expand All

Calendar Methods

The Calendar type exposes the following members.

  Name Description
Public method AddDays Returns a DateTime that is the specified number of days away from the specified DateTime.
Public method AddHours Returns a DateTime that is the specified number of hours away from the specified DateTime.
Public method AddMilliseconds Returns a DateTime that is the specified number of milliseconds away from the specified DateTime.
Public method AddMinutes Returns a DateTime that is the specified number of minutes away from the specified DateTime.
Public method AddMonths When overridden in a derived class, returns a DateTime that is the specified number of months away from the specified DateTime.
Public method AddSeconds Returns a DateTime that is the specified number of seconds away from the specified DateTime.
Public method AddWeeks Returns a DateTime that is the specified number of weeks away from the specified DateTime.
Public method AddYears When overridden in a derived class, returns a DateTime that is the specified number of years away from the specified DateTime.
Public method Clone Creates a new object that is a copy of the current Calendar object.
Public method Equals(Object) Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetDayOfMonth When overridden in a derived class, returns the day of the month in the specified DateTime.
Public method GetDayOfWeek When overridden in a derived class, returns the day of the week in the specified DateTime.
Public method GetDayOfYear When overridden in a derived class, returns the day of the year in the specified DateTime.
Public method GetDaysInMonth(Int32, Int32) Returns the number of days in the specified month and year of the current era.
Public method GetDaysInMonth(Int32, Int32, Int32) When overridden in a derived class, returns the number of days in the specified month, year, and era.
Public method GetDaysInYear(Int32) Returns the number of days in the specified year of the current era.
Public method GetDaysInYear(Int32, Int32) When overridden in a derived class, returns the number of days in the specified year and era.
Public method GetEra When overridden in a derived class, returns the era in the specified DateTime.
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetHour Returns the hours value in the specified DateTime.
Public method GetLeapMonth(Int32) Calculates the leap month for a specified year.
Public method GetLeapMonth(Int32, Int32) Calculates the leap month for a specified year and era.
Public method GetMilliseconds Returns the milliseconds value in the specified DateTime.
Public method GetMinute Returns the minutes value in the specified DateTime.
Public method GetMonth When overridden in a derived class, returns the month in the specified DateTime.
Public method GetMonthsInYear(Int32) Returns the number of months in the specified year in the current era.
Public method GetMonthsInYear(Int32, Int32) When overridden in a derived class, returns the number of months in the specified year in the specified era.
Public method GetSecond Returns the seconds value in the specified DateTime.
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method GetWeekOfYear Returns the week of the year that includes the date in the specified DateTime value.
Public method GetYear When overridden in a derived class, returns the year in the specified DateTime.
Public method IsLeapDay(Int32, Int32, Int32) Determines whether the specified date in the current era is a leap day.
Public method IsLeapDay(Int32, Int32, Int32, Int32) When overridden in a derived class, determines whether the specified date in the specified era is a leap day.
Public method IsLeapMonth(Int32, Int32) Determines whether the specified month in the specified year in the current era is a leap month.
Public method 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.
Public method IsLeapYear(Int32) Determines whether the specified year in the current era is a leap year.
Public method IsLeapYear(Int32, Int32) When overridden in a derived class, determines whether the specified year in the specified era is a leap year.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Static member ReadOnly Returns a read-only version of the specified Calendar object.
Public method ToDateTime(Int32, Int32, Int32, Int32, Int32, Int32, Int32) Returns a DateTime that is set to the specified date and time in the current era.
Public method 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.
Public method ToFourDigitYear Converts the specified year to a four-digit year by using the TwoDigitYearMax property to determine the appropriate century.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Top
Show:
© 2014 Microsoft