Home » Developer & Programmer » Forms » Help me with date and datetime items!
Help me with date and datetime items! [message #85295] Mon, 14 June 2004 04:56 Go to next message
Solveiga
Messages: 36
Registered: March 2003
Member
Could someone help me with such a function?

I created functio FD:

FUNCTION FD (date1 Date, date2 Date) RETURN DATE IS d Date;

BEGIN
  
d := to_date(to_char(data1,'yyyy-mm-dd')||' '||to_char(data2,'hh24:mi:ss'),'yyyy-mm-dd hh24:mi:ss');
return(d);
 
END;

and want to format a data base item by writing

:My_block.Date_item := FD(:My_block.Day, :My_block.Time)

Could someone help me?
Re: Help me with date and datetime items! [message #85307 is a reply to message #85295] Tue, 15 June 2004 01:46 Go to previous messageGo to next message
nsk
Messages: 16
Registered: June 2004
Junior Member
from u r question problem is not clear. can u explain what is the problem plz.
Re: Help me with date and datetime items! [message #85320 is a reply to message #85307] Tue, 15 June 2004 21:52 Go to previous message
Solveiga
Messages: 36
Registered: March 2003
Member
I was getting an error data format not recognized.. but it seems it was a compilation's error
Now everything is working...

Thank you for your attention
Solveiga
Previous Topic: How to connect Oracle Forms to MS Access Database and SQL Server?
Next Topic: calling a report from forms
Goto Forum:
  


Current Time: Tue May 07 05:37:12 CDT 2024