Date.QuarterOfYear

About

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

Syntax

Date.QuarterOfYear(dateTime as datetime) as nullable number  

Arguments

Argument Description
dateTime The DateTime to check against.

Examples

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