Date conversion problem [message #84167] |
Mon, 09 February 2004 07:57 |
Stef
Messages: 8 Registered: April 2003
|
Junior Member |
|
|
I'm working with Oracle Forms 6.0.8.14.1.
I've got a VARCHAR2(4) column in a table, in which I store a time indication, such as 0800, 2000, 1830 and so on.
I want to load it in a DATE form field, which has the format mask = 'HH24:MI'.
I valorize it in the post-query trigger with the code:
:MAIN.DATE_FIELD := TO_DATE(DATABASE_COLUMN, 'HH24MI');
But all I get is '00:00', also when a TO_CHAR message of the date returns me correct HH24 MI information.
Why?
|
|
|
|
|