Table of contents
TOC
Collapse the table of content
Expand the table of content

Date.EndOfDay

Owen Duncan|Last Updated: 10/5/2018
|
1 Contributor

About

Returns a DateTime value for the end of the day.

Date.EndOfDay(dateTime as nullable datetime) as nullable datetime  

Arguments

ArgumentDescription
dateTimeThe DateTime to check against.

Remarks

  • The date and time portions are reset to their initial values for the day.

  • The timezone information is persisted.

Example

dateTime = DateTimeZone.FromText("2011-02-21T12:30:00-08:00");  
Date.EndOfDay(dateTime) equals 2011-02-21T23:59:590-08:00  

Parameter values

The following day values can be used DateTime functions.

Day

DayValue
Day.Sunday0
Day.Monday1
Day.Tuesday2
Day.Wednesday3
Day.Thursday4
Day.Friday5
Day.Saturday6
© 2018 Microsoft