rjulmdy()

Creates an array of short integer values representing year, month, and day of a date.

Syntax

mint rjulmdy(int4 jdate, int2 mdy[3]);
Note:
  1. jdate is the internal representation of a date.
  2. mdy is an array of short integers

Returns

Table 1. Return codes
Code Description
1 The year is a leap year.
0 The operation was successful.
<0 The operation failed.
-1210 The internal date could not be converted to the character string format.

Usage

The function creates an array of short integer values representing year, month, and day from a date that is in the native database date format.

In the resulting mdy array, mdy[0] is the month (1 to 12), mdy[1] is the day (1 to 31), and mdy[2] is the year (1 to 9999).