Returns the last value of the day.
function (optional
dateTime
as nullable any) as nullable any
Returns a date
, datetime
, or datetimezone
value representing the end of the day in dateTime
. Time zone information is preserved.
Date
Get the end of the day for 5/14/2011 05:00:00 PM.
Date.EndOfDay(#datetime(2011, 5, 14, 17, 0, 0))
Get the end of the day for 5/17/2011 05:00:00 PM -7:00.
Date.EndOfDay(#datetimezone(2011, 5, 17, 5, 0, 0, -7, 0))