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

Date.StartOfYear

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

About

Returns a DateTime value representing the start of the year.

Date.StartOfYear(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 year.

  • The timezone information is persisted.

Example

dateTime=DateTimeZone.FromText("2011-02-21T12:30:00-08:00")   
Date.StartOfYear(dateTime) equals 2011-01-01T00:00:00-08:00  
© 2018 Microsoft