DateTime.ToRecordDateTime.ToRecord
構文Syntax
DateTime.ToRecord(dateTime as datetime) as record
バージョン情報About
指定された datetime 値 (dateTime
) の部分を含むレコードを返します。Returns a record containing the parts of the given datetime value, dateTime
.
dateTime
: その部分のレコードが計算されるdatetime
値。dateTime
: Adatetime
value for from which the record of its parts is to be calculated.
例 1Example 1
#datetime(2011, 12, 31, 11, 56, 2)
値を、日付および時刻値を含むレコードに変換します。Convert the #datetime(2011, 12, 31, 11, 56, 2)
value into a record containing Date and Time values.
DateTime.ToRecord(#datetime(2011, 12, 31, 11, 56, 2))
年Year | 20112011 |
---|---|
MonthMonth | 1212 |
日Day | 3131 |
時間Hour | 1111 |
分Minute | 5656 |
秒Second | 22 |