Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

DateTimeFormatInfo Members

DateTimeFormatInfo overview

Public Constructors

public constructorDateTimeFormatInfo Constructor

Supported by the .NET Compact Framework.

Initializes a new writable instance of the DateTimeFormatInfo class that is culture-independent (invariant).

Public Properties

public propertyAbbreviatedDayNames

Supported by the .NET Compact Framework.

Gets or sets a one-dimensional array of type String containing the culture-specific abbreviated names of the days of the week.
public propertyAbbreviatedMonthNames

Supported by the .NET Compact Framework.

Gets or sets a one-dimensional array of type String containing the culture-specific abbreviated names of the months.
public propertyAMDesignator

Supported by the .NET Compact Framework.

Gets or sets the string designator for hours that are "ante meridiem" (before noon).
public propertyCalendar

Supported by the .NET Compact Framework.

Gets or sets the calendar to use for the current culture.
public propertyCalendarWeekRule

Supported by the .NET Compact Framework.

Gets or sets a value that specifies which rule is used to determine the first calendar week of the year.
public propertystatic (Shared in Visual Basic)CurrentInfo

Supported by the .NET Compact Framework.

Gets a read-only DateTimeFormatInfo that formats values based on the current culture.
public propertyDateSeparator

Supported by the .NET Compact Framework.

Gets or sets the string that separates the components of a date; that is, the year, month, and day.
public propertyDayNames

Supported by the .NET Compact Framework.

Gets or sets a one-dimensional array of type String containing the culture-specific full names of the days of the week.
public propertyFirstDayOfWeek

Supported by the .NET Compact Framework.

Gets or sets the first day of the week.
public propertyFullDateTimePattern

Supported by the .NET Compact Framework.

Gets or sets the format pattern for a long date and long time value, which is associated with the 'F' format character.
public propertystatic (Shared in Visual Basic)InvariantInfo

Supported by the .NET Compact Framework.

Gets the default read-only DateTimeFormatInfo that is culture-independent (invariant).
public propertyIsReadOnly

Supported by the .NET Compact Framework.

Gets a value indicating whether the DateTimeFormatInfo is read-only.
public propertyLongDatePattern

Supported by the .NET Compact Framework.

Gets or sets the format pattern for a long date value, which is associated with the 'D' format character.
public propertyLongTimePattern

Supported by the .NET Compact Framework.

Gets or sets the format pattern for a long time value, which is associated with the 'T' format character.
public propertyMonthDayPattern

Supported by the .NET Compact Framework.

Gets or sets the format pattern for a month and day value, which is associated with the 'm' and 'M' format characters.
public propertyMonthNames

Supported by the .NET Compact Framework.

Gets or sets a one-dimensional array of type String containing the culture-specific full names of the months.
public propertyPMDesignator

Supported by the .NET Compact Framework.

Gets or sets the string designator for hours that are "post meridiem" (after noon).
public propertyRFC1123Pattern

Supported by the .NET Compact Framework.

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 propertyShortDatePattern

Supported by the .NET Compact Framework.

Gets or sets the format pattern for a short date value, which is associated with the 'd' format character.
public propertyShortTimePattern

Supported by the .NET Compact Framework.

Gets or sets the format pattern for a short time value, which is associated with the 't' format character.
public propertySortableDateTimePattern

Supported by the .NET Compact Framework.

Gets the format pattern for a sortable date and time value, which is associated with the 's' format character.
public propertyTimeSeparator

Supported by the .NET Compact Framework.

Gets or sets the string that separates the components of time; that is, the hour, minutes, and seconds.
public propertyUniversalSortableDateTimePattern

Supported by the .NET Compact Framework.

Gets the format pattern for a universal sortable date and time value, which is associated with the 'u' and 'U' format characters.
public propertyYearMonthPattern

Supported by the .NET Compact Framework.

Gets or sets the format pattern for a year and month value, which is associated with the 'y' and 'Y' format characters.

Public Methods

public methodClone

Supported by the .NET Compact Framework.

Creates a shallow copy of the DateTimeFormatInfo.
public methodEquals (inherited from Object)

Supported by the .NET Compact Framework.

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

Supported by the .NET Compact Framework.

Returns the culture-specific abbreviated name of the specified day of the week based on the CultureInfo of the current thread.
public methodGetAbbreviatedEraName

Supported by the .NET Compact Framework.

Returns the string containing the abbreviated name of the specified era, if an abbreviation exists.
public methodGetAbbreviatedMonthName

Supported by the .NET Compact Framework.

Returns the culture-specific abbreviated name of the specified month based on the CultureInfo of the current thread.
public methodGetAllDateTimePatterns

Supported by the .NET Compact Framework.

Overloaded. Returns the standard patterns in which DateTime values can be formatted.
public methodGetDayName

Supported by the .NET Compact Framework.

Returns the culture-specific full name of the specified day of the week based on the CultureInfo of the current thread.
public methodGetEra

Supported by the .NET Compact Framework.

Returns the integer representing the specified era.
public methodGetEraName

Supported by the .NET Compact Framework.

Returns the string containing the name of the specified era.
public methodGetFormat

Supported by the .NET Compact Framework.

Returns an object of the specified type that provides a DateTime formatting service.
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 methodstatic (Shared in Visual Basic)GetInstance

Supported by the .NET Compact Framework.

Returns the DateTimeFormatInfo associated with the specified IFormatProvider.
public methodGetMonthName

Supported by the .NET Compact Framework.

Returns the culture-specific full name of the specified month based on the CultureInfo of the current thread.
public methodGetType (inherited from Object)

Supported by the .NET Compact Framework.

Gets the Type of the current instance.
public methodstatic (Shared in Visual Basic)ReadOnly

Supported by the .NET Compact Framework.

Returns a read-only DateTimeFormatInfo wrapper.
public methodToString (inherited from Object)

Supported by the .NET Compact Framework.

Returns a String that represents the current Object.

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

DateTimeFormatInfo Class | System.Globalization Namespace

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft