Export (0) Print
Expand All

DateTimeFormatInfo Members

Defines how DateTime values are formatted and displayed, depending on the culture.

The following tables list the members exposed by the DateTimeFormatInfo type.

  Name Description
Public method Supported by the .NET Compact Framework DateTimeFormatInfo Initializes a new writable instance of the DateTimeFormatInfo class that is culture-independent (invariant).
Top

  Name Description
Public property Supported by the .NET Compact Framework AbbreviatedDayNames Gets or sets a one-dimensional array of type String containing the culture-specific abbreviated names of the days of the week.
Public property Supported by the .NET Compact Framework AbbreviatedMonthGenitiveNames Gets or sets a string array of abbreviated month names associated with the current DateTimeFormatInfo object.
Public property Supported by the .NET Compact Framework AbbreviatedMonthNames Gets or sets a one-dimensional array of type String containing the culture-specific abbreviated names of the months.
Public property Supported by the .NET Compact Framework AMDesignator Gets or sets the string designator for hours that are "ante meridiem" (before noon).
Public property Supported by the .NET Compact Framework Calendar Gets or sets the calendar to use for the current culture.
Public property Supported by the .NET Compact Framework CalendarWeekRule Gets or sets a value that specifies which rule is used to determine the first calendar week of the year.
Public property Static Supported by the .NET Compact Framework CurrentInfo Gets a read-only DateTimeFormatInfo that formats values based on the current culture.
Public property Supported by the .NET Compact Framework DateSeparator Gets or sets the string that separates the components of a date; that is, the year, month, and day.
Public property Supported by the .NET Compact Framework DayNames Gets or sets a one-dimensional array of type String containing the culture-specific full names of the days of the week.
Public property Supported by the .NET Compact Framework FirstDayOfWeek Gets or sets the first day of the week.
Public property Supported by the .NET Compact Framework FullDateTimePattern Gets or sets the format pattern for a long date and long time value, which is associated with the 'F' format character.
Public property Static Supported by the .NET Compact Framework InvariantInfo Gets the default read-only DateTimeFormatInfo that is culture-independent (invariant).
Public property Supported by the .NET Compact Framework IsReadOnly Gets a value indicating whether the DateTimeFormatInfo is read-only.
Public property Supported by the .NET Compact Framework LongDatePattern Gets or sets the format pattern for a long date value, which is associated with the 'D' format character.
Public property Supported by the .NET Compact Framework LongTimePattern Gets or sets the format pattern for a long time value, which is associated with the 'T' format character.
Public property Supported by the .NET Compact Framework MonthDayPattern Gets or sets the format pattern for a month and day value, which is associated with the 'm' and 'M' format characters.
Public property Supported by the .NET Compact Framework MonthGenitiveNames Gets or sets a string array of month names associated with the current DateTimeFormatInfo object.
Public property Supported by the .NET Compact Framework MonthNames Gets or sets a one-dimensional array of type String containing the culture-specific full names of the months.
Public property NativeCalendarName Gets the native name of the calendar associated with the current DateTimeFormatInfo object.
Public property Supported by the .NET Compact Framework PMDesignator Gets or sets the string designator for hours that are "post meridiem" (after noon).
Public property Supported by the .NET Compact Framework RFC1123Pattern Gets the format pattern for a time value, which is based on the Internet Engineering Task Force (IETF) Request for Comments (RFC) 1123 specification and is associated with the 'r' and 'R' format characters.
Public property Supported by the .NET Compact Framework ShortDatePattern Gets or sets the format pattern for a short date value, which is associated with the 'd' format character.
Public property Supported by the .NET Compact Framework ShortestDayNames Gets or sets a string array of the shortest unique abbreviated day names associated with the current DateTimeFormatInfo object.
Public property Supported by the .NET Compact Framework ShortTimePattern Gets or sets the format pattern for a short time value, which is associated with the 't' format character.
Public property Supported by the .NET Compact Framework SortableDateTimePattern Gets the format pattern for a sortable date and time value, which is associated with the 's' format character.
Public property Supported by the .NET Compact Framework TimeSeparator Gets or sets the string that separates the components of time; that is, the hour, minutes, and seconds.
Public property Supported by the .NET Compact Framework UniversalSortableDateTimePattern Gets the format pattern for a universal sortable date and time value, which is associated with the 'u' format character.
Public property Supported by the .NET Compact Framework YearMonthPattern Gets or sets the format pattern for a year and month value, which is associated with the 'y' and 'Y' format characters.
Top

  Name Description
Public method Supported by the .NET Compact Framework Clone Creates a shallow copy of the DateTimeFormatInfo.
Public method Supported by the .NET Compact Framework Equals  Overloaded. Determines whether two Object instances are equal. (Inherited from Object.)
Public method Supported by the .NET Compact Framework 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 Supported by the .NET Compact Framework GetAbbreviatedEraName Returns the string containing the abbreviated name of the specified era, if an abbreviation exists.
Public method Supported by the .NET Compact Framework GetAbbreviatedMonthName Returns the culture-specific abbreviated name of the specified month based on the culture associated with the current DateTimeFormatInfo object.
Public method Supported by the .NET Compact Framework GetAllDateTimePatterns Overloaded. Returns the standard patterns in which DateTime values can be formatted.
Public method Supported by the .NET Compact Framework 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 Supported by the .NET Compact Framework GetEra Returns the integer representing the specified era.
Public method Supported by the .NET Compact Framework GetEraName Returns the string containing the name of the specified era.
Public method Supported by the .NET Compact Framework GetFormat Returns an object of the specified type that provides a DateTime formatting service.
Public method Supported by the .NET Compact Framework GetHashCode  Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table. (Inherited from Object.)
Public method Static Supported by the .NET Compact Framework GetInstance Returns the DateTimeFormatInfo associated with the specified IFormatProvider.
Public method Supported by the .NET Compact Framework 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 Supported by the .NET Compact Framework GetType  Gets the Type of the current instance. (Inherited from Object.)
Public method Static Supported by the .NET Compact Framework ReadOnly Returns a read-only DateTimeFormatInfo wrapper.
Public method Static Supported by the .NET Compact Framework ReferenceEquals  Determines whether the specified Object instances are the same instance. (Inherited from Object.)
Public method SetAllDateTimePatterns Sets all the standard patterns in which a DateTime value can be formatted.
Public method Supported by the .NET Compact Framework ToString  Returns a String that represents the current Object. (Inherited from Object.)
Top

Community Additions

ADD
Show:
© 2014 Microsoft