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 test.

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

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

Community Additions

ADD
Show: