date display through global varibales [message #344724] |
Mon, 01 September 2008 02:07 ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
varu123
Messages: 754 Registered: October 2007
|
Senior Member |
|
|
I have set the datatype of date textitem to datetime.
This particular textitem is aasigned date through global variables.
But when I do some testing data entry,the date column in database of the corresponding table is not populated with the format:
hh:mi:ss
SQL>select dt from tbl;
01-SEP-08 00:00:00
If I use sysdate insted of global variables,It does.
SQL>select dt from tbl;
01-SEP-08 11:34:21
Are there any special restrictions to global variables?
|
|
|
|
|
|
|
Re: date display through global varibales [message #344829 is a reply to message #344724] |
Mon, 01 September 2008 06:07 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
varu123
Messages: 754 Registered: October 2007
|
Senior Member |
|
|
@mudabbir
tried
to_date(:global.vd,'DD-MM-YYYY HH:MI:SS AM');
But the result is displayed as
@saadat
this link tells me that if the textitems are populated by sysdate,only changing to dateitem would work.
But in my case,it is not working with global variables.
|
|
|
|
|
|