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

Time.EndOfHour

Owen Duncan|Last Updated: 4/19/2018

About

Returns a DateTime value from the end of the hour.

Time.EndOfHour(dateTime as datetime) as nullable datetime  

Arguments

ArgumentDescription
dateTimeThe DateTime to check against.

Remarks

  • The time portion is reset to its terminating values for the hour.

  • The timezone information is persisted.

Example

dateTime = DateTimeZone.FromText("2011-02-21T12:30:00-08:00");   
Time.EndOfHour(dateTime) equals 2011-02-21T12:59:59-08:00  
© 2018 Microsoft