Export (0) Print
Expand All

DateTimeFormatInfo Methods

The DateTimeFormatInfo type exposes the following members.

  NameDescription
Public method Clone Creates a shallow copy of the DateTimeFormatInfo.
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 GetAbbreviatedDayName Returns the culture-specific abbreviated name of the specified day of the week based on the culture associated with the current DateTimeFormatInfo object.
Public method GetAbbreviatedEraName Returns the string containing the abbreviated name of the specified era, if an abbreviation exists.
Public method GetAbbreviatedMonthName Returns the culture-specific abbreviated name of the specified month based on the culture associated with the current DateTimeFormatInfo object.
Public method GetAllDateTimePatterns() Returns all the standard patterns in which date and time values can be formatted.
Public method GetAllDateTimePatterns(Char) Returns all the patterns in which date and time values can be formatted using the specified standard format string.
Public method GetDayName Returns the culture-specific full name of the specified day of the week based on the culture associated with the current DateTimeFormatInfo object.
Public method GetEra Returns the integer representing the specified era.
Public method GetEraName Returns the string containing the name of the specified era.
Public method GetFormat Returns an object of the specified type that provides a DateTime formatting service.
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method Static member GetInstance Returns the DateTimeFormatInfo object associated with the specified IFormatProvider.
Public method GetMonthName Returns the culture-specific full name of the specified month based on the culture associated with the current DateTimeFormatInfo object.
Public method GetShortestDayName Obtains the shortest abbreviated day name for a specified day of the week associated with the current DateTimeFormatInfo object.
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Static member ReadOnly Returns a read-only DateTimeFormatInfo wrapper.
Public method SetAllDateTimePatterns Sets the custom date and time format strings that correspond to a specified standard format string.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Top

Community Additions

ADD
Show:
© 2014 Microsoft