| Oracle Call Interface Programmer's Guide Release 2 (9.2) Part Number A96584-01 |
|
OCI Datatype Mapping and Manipulation Functions, 22 of 134
Converts a character string to a date type according to the specified format.
sword OCIDateFromText ( OCIError *err, CONST text *date_str, ub4 d_str_length, CONST text *fmt, ub1 fmt_length, CONST text *lang_name, ub4 lang_length, OCIDate *date );
The OCI error handle. If there is an error, it is recorded in err and this function returns OCI_ERROR. Obtain diagnostic information by calling OCIErrorGet().
Input string to be converted to Oracle date.
Size of the input string, if the length is -1 then date_str is treated as a NULL-terminated string.
Conversion format. If fmt is a null pointer, then the string is expected to be in 'DD-MON-YY' format.
Length of the fmt parameter.
Language in which the names and abbreviations of days and months are specified. If lang_name is a null string, (text *)0, then the default language of the session is used.
Length of the lang_name parameter.
Given string converted to date.
Refer to the TO_DATE conversion function described in the Oracle9i SQL Referencefor a description of format and multilingual arguments.
This function returns an error if it receives an invalid format, language, or input string.
|
![]() Copyright © 1996, 2002 Oracle Corporation. All Rights Reserved. |
|