DateTimeFormat 類別

定義

指定日期時間格式選項。

public ref class DateTimeFormat
public class DateTimeFormat
type DateTimeFormat = class
Public Class DateTimeFormat
繼承
DateTimeFormat

建構函式

DateTimeFormat(String)

使用格式字串初始化 DateTimeFormat 類別的新執行個體。

DateTimeFormat(String, IFormatProvider)

使用格式字串和格式提供者,初始化 DateTimeFormat 類別的新執行個體。

屬性

DateTimeStyles

取得或設定格式化選項,這些選項會自訂一些日期和時間剖析方法的字串剖析。

FormatProvider

取得控制格式設定的物件。

FormatString

取得當日期或時間表示為字串時,用來控制所產生格式的格式字串。

方法

Equals(Object)

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetType()

取得目前執行個體的 Type

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
ToString()

傳回代表目前物件的字串。

(繼承來源 Object)

適用於