C-Extensions / C API functions |
Convert a character string to a datetime value, specifying the format of the string.
mint ifx_dtcvfmtasc(char *input, char *fmt, dtime_t *d, char c);
Code | Description |
---|---|
0 | The conversion was successful. |
<0 | The conversion failed. |
The fmt parameter defines the formatting mask. The default datetime format conforms to the standard ANSI SQL format: %Y-%m-%d %H:%M:%S
The function allows you to specify the century setting for two-digit dates. The c parameter must be one of century characters, which determines which century to apply to the year portion of the date.