mkDate Function

Creates a date based on three integers, which indicate day, month, and year, respectively.


date mkDate(int day, int month, int year)

Parameter

Description

day

An integer that represents the day.

month

An integer that represents the month.

year

An integer that represents the year.

NoteNote
year must be written as four digits.

A date based on the values in day, month, and year. If the date is not valid, mkDate returns a zero date.

static void mkDateExample(Args _arg)
{
     date d;
      ;
 
    // Returns the date 01\01\2005.
     d = mkDate(1, 1, 2005);  
    print d;
    pause;
}

Community Additions

ADD
Show: