Date.EndOfDay
Returns the end of the day.
Syntax
Date.EndOfDay(
dateTime as any
) as any
Remarks
Returns the end of the day represented by dateTime
. Time zone information is preserved.
dateTime
: Adate
,datetime
, ordatetimezone
value from from which the end of the day is calculated.
Examples
Example #1
Get the end of the day for 5/14/2011 05:00:00 PM.
Date.EndOfDay(#datetime(2011, 5, 14, 17, 0, 0))
Result:
#datetime(2011, 5, 14, 23, 59, 59.9999999)
Example #2
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))
Result:
#datetimezone(2011, 5, 17, 23, 59, 59.9999999, -7, 0)
Category
Date