dayOfYr Function [AX 2012]

Updated: December 10, 2009

Applies To: Microsoft Dynamics AX 2012 R2, Microsoft Dynamics AX 2012 Feature Pack, Microsoft Dynamics AX 2012

Calculates the number of days between January 1 and the specified date.


int dayOfYr(date _date)

Parameter

Description

_date

A date that specifies the year, month, and day.

The number of days between January 1 and the specified date, inclusive.

January 1 is 1 and December 31 is either 365 or 366.

static void dayOfYrExample(Args _arg)
{
    date d = today();
    int i;
    ;
    i = dayOfYr(d);
    print "Today's day of the year is " + int2Str(i);
    pause;
} 

Announcements: To see known issues and recent fixes, use Issue search in Microsoft Dynamics Lifecycle Services (LCS).

Community Additions

ADD
Show: