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

Date.QuarterOfYear

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

About

Returns a number between 1 and 4 for the quarter of the year from a DateTime value.

Date.QuarterOfYear(dateTime as datetime) as nullable number  

Arguments

ArgumentDescription
dateTimeThe DateTime to check against.

Examples

Date.QuarterOfYear(DateTime.FromText("2011-03-21")) equals 1  
Date.QuarterOfYear(DateTime.FromText("2011-11-21")) equals 4  
© 2018 Microsoft