C-Extensions / C API functions |
Converts a string in a specified format to the native database date format.
mint rdefmtdate(int4 *pdate, char *fmt, char *input);
Code | Description |
---|---|
0 | The operation was successful. |
-1204 | The input parameter specifies an invalid year. |
-1205 | The input parameter specifies an invalid month. |
-1206 | The input parameter specifies an invalid day. |
-1209 | Because input does not contain delimiters between the year,month,and day, the length ofinput must be exactly six or eight bytes. |
-1212 | fmt does not specify a year, a month, and a day. |
The fmt string contains the formatting mask for the string.