|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today! |
|
#1
|
|||
|
|||
|
Hai,
I want to store date and time in a table through oracle forms 6i. I am able to store the date but not the time. I tried to set the date and time in the oracle form but while commiting the form only the date part is stored in the table and not the time part. Please help me in this regard. Thanks and Regards, A.Mohammed Rafi Aamiri. E-Mail : rafi_amr@yahoo.com |
|
#2
|
|||
|
|||
|
Assuming:
The datatype of the field in the table is DATE, we'll call it the table MYTABLE and the field MYDATE. The dataype you are using in Forms is either VARCHAR2 or DATE. What do you get when you do this?: Code:
SELECT TO_CHAR(MYDATE,'MON-DD-YYYY HH:MM') from MYTABLE; What does your insert statement look like? |
|
#3
|
|||
|
|||
|
Quote:
In the table the datatype of the column is DATE. I want to store both date and time in the column through Oracle Forms 6i. I am able to store the date but the time part is not able to sotre. Also I am using Commit_Form procedure to store the values in the table. |
|
#4
|
|||
|
|||
|
I'm not communicating with you very well.
Get into SQLPLUS. I do not know the name of your table or the column that stores the date Code:
SELECT TO_CHAR(MYDATE,'MON-DD-YYYY HH:MM') from MYTABLE; what do you see? In other words, paste the result of this so I can see it, too. |
|
#5
|
|||
|
|||
|
hello,
try select to_date('24.12.2004 13:42','DD.MM.YYYY hh24:mi') from dual; you can play whith that. "to_date" converts the string to date. So you cann make insert into yourtable column1, .... values (to_date('24.12.2004 13:42','DD.MM.YYYY hh24:mi'), .....; |
![]() |
| Viewing: Dev Shed Forums > Databases > Oracle Development > Storing Date and Time through Forms 6i |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|