Top > Date

Date     Utility Edit

Declaration:

 FUNCTION Date(dateFormat,infoFormat :INTEGER
         ) :STRING ;

Description:

Function Date returns a formatted date and time string.

 Table - Values for dateFormat parameter:

Date FormatConstant
Full Date0
Abbreviated Date1
Short Date2

 Table - Values for infoFormat parameter:

Date/TimeConstant
Date only0
Date and Time1
Time only2

説明

現在の日付と時間を文字列で返します。

Parameters:

dateFormatINTEGER日付の種類
infoFormatINTEGER情報の種類
返り値STRING日付の文字列

日付の種類:0=日付のみ/1=日付と時間/2=時間のみ
情報の種類:0=完全形式/1=完全形式の省略形/2=短縮形式
Example:

       { All examples are for the date Friday,  }
       { Nov. 18, 1988 and the time 10:42:24 AM }
       Date(0,1);
       {returns Friday, November 18, 1988 10:42:24 AM}
       Date(0,0);
       {returns Friday, November 18, 1988}
       Date(2,2);
       {returns 10:42:24 AM}
       Date(2,1);
       {returns 11/18/88 10:42:24 AM}

リロード   新規 下位ページ作成 編集 凍結 差分 添付 コピー 名前変更   ホーム 一覧 検索 最終更新 バックアップ リンク元   ヘルプ   最終更新のRSS
Last-modified: Thu, 08 Dec 2011 01:57:37 JST (4526d)