DATE library functions

The following date-manipulation functions are in the library. They convert dates between a string format and the internal DATE format.
Function name Description See
rdatestr() Converts an internal DATE to a character string format The rdatestr() function
rdayofweek() Returns the day of the week of a date in internal format The rdayofweek() function
rdefmtdate() Converts a specified string format to an internal DATE The rdefmtdate() function
rfmtdate() Converts an internal DATE to a specified string format The rfmtdate() function
rjulmdy() Returns month, day, and year from a specified DATE The rjulmdy() function
rleapyear() Determines whether specified year is a leap year The rleapyear() function
rmdyjul() Returns an internal DATE from month, day, and year The rmdyjul() function
rstrdate() Converts a character string format to an internal DATE The rstrdate() function
rtoday() Returns a system date as an internal DATE The rtoday() function

When you compile your program with the esql command, esql automatically links these functions into your program.