Skip to content
This repository has been archived by the owner on Feb 5, 2024. It is now read-only.

Latest commit

 

History

History
26 lines (23 loc) · 709 Bytes

DateTime.ToRecord.md

File metadata and controls

26 lines (23 loc) · 709 Bytes

DateTime.ToRecord

Returns a record containing the datetime value's parts.

function (dateTime as datetime) as record

Description

Returns a record containing the parts of the given datetime value, dateTime.

  • dateTime: A datetime value for from which the record of its parts is to be calculated.
  • Category

    DateTime

    Examples

    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 = 2011, Month = 12, Day = 31, Hour = 11, Minute = 56, Second = 2 ]