DateTimeFormat Class

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Specifies date-time format options.

Namespace:   System.Runtime.Serialization
Assembly:  System.Runtime.Serialization (in System.Runtime.Serialization.dll)

System.Object
  System.Runtime.Serialization.DateTimeFormat

public class DateTimeFormat

NameDescription
System_CAPS_pubmethodDateTimeFormat(String)

Initializes a new instance of the DateTimeFormat class using the format string.

System_CAPS_pubmethodDateTimeFormat(String, IFormatProvider)

Initializes a new instance of the DateTimeFormat class using the format string and format provider.

NameDescription
System_CAPS_pubpropertyDateTimeStyles

Gets or sets the formatting options that customize string parsing for some date and time parsing methods.

System_CAPS_pubpropertyFormatProvider

Gets an object that controls formatting.

System_CAPS_pubpropertyFormatString

Gets the format strings to control the formatting produced when a date or time is represented as a string.

NameDescription
System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

Universal Windows Platform
Available since 8
.NET Framework
Available since 4.5
Portable Class Library
Supported in: portable .NET platforms
Windows Phone Silverlight
Available since 8.0
Windows Phone
Available since 8.1

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: