The rmdyjul() function

The rmdyjul() function creates an internal DATE from an array of three short integer values that represent month, day, and year.

Syntax

mint rmdyjul(mdy, jdate)
   int2 mdy[3];
   int4 *jdate;
mdy
An array of short integer values, in which mdy[0] is the month (1 - 12), mdy[1] is the day (1 - 31), and mdy[2] is the year (1 - 9999).
jdate
A pointer to a long integer to contain the internal DATE value for the mdy array.

Usage

You can express the year in full form (2006) or abbreviated form (06).

Return values

0
The operation was successful.
-1204
The mdy[2] variable contains an invalid year.
-1205
The mdy[0] variable contains an invalid month.
-1206
The mdy[1] variable contains an invalid day.