DateTime.Date
Returns the date component of the given date, datetime, or datetimezone value.
Syntax
DateTime.Date(
dateTime as any
) as date
Remarks
Returns the date component of dateTime
, the given date
, datetime
, or datetimezone
value.
Examples
Example #1
Find date value of #datetime(2010, 12, 31, 11, 56, 02).
DateTime.Date(#datetime(2010, 12, 31, 11, 56, 02))
Result:
#date(2010, 12, 31)
Category
DateTime