![]() |
|
The rstrdate() function converts a character string to an internal DATE.
For the default locale, U.S. English, the rstrdate() function determines how to format the character string with the following precedence:
When you use a nondefault locale and do not set the DBDATE or GL_DATE environment variable, rstrdate() uses the date end-user format that the client locale defines. For more information, see the Informix Guide to GLS Functionality.
When you use a two-digit year in the date string, the rstrdate() function uses the value of the DBCENTURY environment variable to determine which century to use. If you do not set DBCENTURY, rstrdate() assumes the 20th century for two-digit years. For information on how to set DBCENTURY, see the Informix Guide to SQL: Reference.
The demo directory contains this sample program in the rstrdate.ec file.