Date.DayOfYear

About

Returns a number that represents the day of the year from a DateTime value.

Syntax

  
Date.DayOfYear(dateTime as datetime) as nullable number  

Arguments

Argument Description
dateTime The DateTime to check against.

Examples

Date.DayOfYear(DateTime.FromText("2011-03-01")) equals 60  
Date.DayOfYear(DateTime.FromText("2012-03-01")) equals 61