rdatestr()

To convert a date that is in the native database date format to a string.

Syntax

mint rdatestr(int4 jdate, char *str);
  1. jdate is the internal representation of the date to format.
  2. str is a pointer to the buffer that receives the string for the date value.

Returns

Table 1. Return codes
Code Description
0 The conversion was successful.
<0 The conversion failed.
-1210 The internal date could not be converted to the character string format.
-1212 Data conversion format must contain a month, day, or year component.

Usage

The DBDATE environment variable specifies the data conversion format.