DateTimeFormat 類別

定義

指定日期與時間格式選項。

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

建構函式

名稱 Description
DateTimeFormat(String, IFormatProvider)

使用 format 字串與格式提供者初始化類別的新實例 DateTimeFormat

DateTimeFormat(String)

使用 format 字串初始化類別的新實例 DateTimeFormat

屬性

名稱 Description
DateTimeStyles

取得或設定格式選項,讓字串解析對某些日期和時間解析方法有客製化。

FormatProvider

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

FormatString

取得格式字串,以控制日期或時間以字串表示時產生的格式。

方法

名稱 Description
Equals(Object)

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

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetType()

取得目前實例的 Type

(繼承來源 Object)
MemberwiseClone()

建立目前 Object的淺層複本。

(繼承來源 Object)
ToString()

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

(繼承來源 Object)

適用於