Date.ToRecord
Syntax
Date.ToRecord(date as date) as record
About
Returns a record containing the parts of the given date value, date
.
date
: Adate
value for from which the record of its parts is to be calculated.
Example 1
Convert the #date(2011, 12, 31)
value into a record containing parts from the date value.
Usage
Date.ToRecord(#date(2011, 12, 31))
Output
[
Year = 2011,
Month = 12,
Day = 31
]
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for