Return the date component order for a given language.
char *dbdateorder(dbproc, language) DBPROCESS *dbproc; char *language;
A pointer to the DBPROCESS structure that provides the connection for a particular front-end/server process. It contains all the information that DB-Library uses to manage communications and data between the front end and server.
The name of the language of interest.
A pointer to a null-terminated, 3-character string containing the characters “m,” “d,” and “y,” representing the month, day, and year date components, respectively. The order of the characters in the dbdateorder string corresponds to their order in language’s default datetime format.
dbdateorder returns a NULL pointer on failure.
dbdateorder returns a character string that describes the order in which the month, day, and year date components appear in the specified language. If language is NULL, the current language of the specified DBPROCESS is used. If both language and dbproc are NULL, DB-Library’s default language is used.
WARNING! The date order string returned by dbdateorder is a pointer to DB-Library’s internal data structures. Application programs should neither modify this string, nor free it.
The following code fragment illustrates the use of dbdateorder:
/* Retrieve the date order from Adaptive Server Enterprise */
printf("date-order: %s\n",
(dbdateorder(DBPROCESS *)NULL, (char *)NULL));