DateTime.ToRecord

About

Returns a record containing parts of a DateTime value.

Syntax

DateTime.ToRecord(dateTime as datetime) as record  

Arguments

Argument Description
dateTime The DateTime to parse.

Example

DateTime.ToRecord(#datetime(2013,1,3,12,4,5)) equals  
[             
Year = 2013,   Month = 1,   Day = 3,         
Hour = 12,  Minute = 4, Second = 5  
]