![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi all, when i set a date field's type (12) to VARCHAR2 or STRING, I get the date (mm/dd/yyyy) correct, but I can never get the time which is always set to 00:00:00 even if i increase the buffer size? Is there anyway to force pro*c to format correctly without using to_char because with to_char i lose the ability to keep track of correct data type. Thanks |
#3
| |||
| |||
|
#4
| |||
| |||
|
|
we are dynamically retrieving data types of a dynamic query and build an XML resultset. to_char i believe gives us a string type when we wanted a date type for that field. Is there a way to do it? to_date(string, format_mask) |
#5
| |||
| |||
|
#6
| |||
| |||
|
|
sorry about bothering you, but when i do something like select to_date(to_char(date_column, 'yyyy-mm-dd hh24:mi:ss'), 'yyyy-mm-dd hh24:mi:ss') from table_name in my pro*c code, i get back 2005-02-24 00:00:00 when data is 2005-02-24 11:05:07 |
#7
| |||
| |||
|
|
sorry about bothering you, but when i do something like select to_date(to_char(date_column, 'yyyy-mm-dd hh24:mi:ss'), 'yyyy-mm-dd hh24:mi:ss') from table_name in my pro*c code, i get back 2005-02-24 00:00:00 when data is 2005-02-24 11:05:07 |
![]() |
| Thread Tools | |
| Display Modes | |
| |