date2Num Function

Converts a date to an integer that corresponds to the number of days since 1 January, 1900.


int date2Num(date _date)

Parameter

Description

_date

The date to convert.

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

//Returns the value377.
date2Num(13\01\1901);

static void date2NumExample(Args _arg)
{
    date d = today();
    int i;
    ;
    i = date2Num(d);
    print i;
    pause;
}

Community Additions

ADD
Show: