DateTimeFormatInfo Methods

DateTimeFormatInfo Methods

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

The DateTimeFormatInfo type exposes the following members.

  NameDescription
Public method Clone Creates a shallow copy of the DateTimeFormatInfo 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 the Object 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 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 name.
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 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 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 ToString Returns a string that represents the current object. (Inherited from Object.)
Top

Show:
© 2017 Microsoft