DateTime.ToRecord(dateTime as datetime) as record


Retorna um registro que contém as partes do valor de datetime especificado, dateTime.Returns a record containing the parts of the given datetime value, dateTime.

  • dateTime: Um valor datetime com base no qual o registro das partes deve ser calculado.dateTime: A datetime value for from which the record of its parts is to be calculated.

Exemplo 1Example 1

Converter o valor #datetime(2011, 12, 31, 11, 56, 2) em um registro contendo valores de Date e Time.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))
AnoYear 20112011
MêsMonth 1212
DiaDay 3131
HoraHour 1111
MinuteMinute 5656
SecondSecond 22