Export (0) Print
Expand All

DateTimeFormatInfo Methods

The methods of the DateTimeFormatInfo class are listed here. For a complete list of DateTimeFormatInfo class members, see the DateTimeFormatInfo Members topic.

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

Show:
© 2014 Microsoft