Date.ToText
傳回日期值的文字表示法。
Syntax
Date.ToText(
date as date,
optional options as any,
optional culture as text
) as text
Remarks
傳回以文字表示的 date。可能會提供選用的 record 參數 (options) 來指定其他屬性。culture 僅用於舊版工作流程。record 可能包含下列欄位:
Format:text值,指出要使用的格式。如需詳細資料,請前往 https://go.microsoft.com/fwlink/?linkid=2180104 與 https://go.microsoft.com/fwlink/?linkid=2180105。省略此欄位或提供null將會導致使用Culture定義的預設將日期格式化。Culture: 當Format不是 null 時,Culture會控制一些格式規範。例如,"en-US"的"MMM"為"Jan", "Feb", "Mar", ...,而"ru-RU"的"MMM"為"янв", "фев", "мар", ...。當Format為null,Culture會控制要使用的預設格式。當Culture是null或已省略時,會使用Culture.Current。
若要支援舊版工作流程,options 與 culture 也可以是文字值。這與 options = [Format = options, Culture = culture] 具有相同的行爲。