Date Utility
|
| Date Format | Constant |
| Full Date | 0 |
| Abbreviated Date | 1 |
| Short Date | 2 |
Table - Values for infoFormat parameter:
| Date/Time | Constant |
| Date only | 0 |
| Date and Time | 1 |
| Time only | 2 |
説明
現在の日付と時間を文字列で返します。
Parameters:
dateFormat Specify how verbose or compact the resulting string is. 日付の種類
infoFormat Specify if result should contain date, time or both. 情報の種類
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}