Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

copy date into text_item 1

Status
Not open for further replies.

hudo

Programmer
Dec 4, 2003
94
DE
I'd like to copy the date/contents of a text_item (typ: Date ,length 19, format mask: dd.mm.yyyy HH24:MI )
into another text_item ( typ: Date ,length 19, format mask: dd.mm.yyyy HH24:MI )

Used a WHEN-BUTTON-PRESSED Trigger with:

:MY_BLOCK.MY_NEW_TIMEFIELD := TO_DATE:)REF_BLOCK.REF_TIME,'dd.mm.yyyy HH24:MI' );

But the hours and minutes are always 00:00

I'd like to have the real hour and minute values in the :MY_BLOCK.MY_NEW_TIMEFIELD

Please Help
 
MY_BLOCK.MY_NEW_TIMEFIELD must be specified as a datetime item. It sounds as though it is defined as date.

[sup]Beware of false knowledge; it is more dangerous than ignorance.[/sup][sup] ~George Bernard Shaw[/sup]
Systems Project Analyst/Custom Forms & PL/SQL - Oracle/Windows
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top