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!

Insert or update a DATE field

Status
Not open for further replies.

cdlvj

MIS
Nov 18, 2003
676
0
0
US
Group,

How in the world do you insert or update a DATE field, I have browsed the pdfs/http and cannot find an example anywhere.
IDS 7.2

update table set lastdate = ??????????;

Tried CURRENT, TODAY, DATE("2005/07/18").
Thanks in Advance.
 
create temp table x (xdt date);

insert into x values (today);
select xdt from x;

update x set xdt=mdy(06,23,2004);
select xdt from x;

update x set xdt=xdt + 1;
select xdt from x;
 
update table set lastdate = "03/05/2005";

It has to be in the above format mm/dd/yyyy.
 
Lookup and configure your date environment:

Unix: echo $DBDATE
export DBDATE=mdy4/

Windows: echo %DBDATE%
set DBDATE=mdy4/
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top