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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

default sysdate

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I create a datefield on the database which takse date and time as values, like nov/30/2001 11:45pm.
However, I now need to make that a default whereby a user does not have to manually type in the date and time.
How can I do this?
I tried datefield := to_char(sysdate, 'mon/dd/yyyy HH24:MI)
I was trying to make this change on when-create-record trigger.
I am running into error message INVALID MONTH.
Any help would be greatly appreciated
 
First, make sure you have the correct format mask defoned for your date field. Then, in the default value property of the field type $$DATETIME$$ or $$DBDATETIME$$.

$$DATETIME$$ gets the local system date and time and $$DBDATETIME$$ effectively reads SYSDATE from the DB.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top