Operations on date data

The Informix® ESQL/C library provides functions to perform operations on DATE (mi_date) values.

Table 1. Informix ESQL/C functions that perform operations on date data
Function name Description
rdayofweek() Returns the day of the week
rjulmdy() Returns month, day, and year from an internal format
rleapyear() Determines whether a specified year is a leap year
rmdyjul() Returns an internal format from month, day, and year
rtoday() Returns a system date in internal format

Any other operations, modifications, or comparisons can produce unpredictable results.