Re: Difference between two dates and times
From: Jamie Collins (jamiecollins_at_xsmail.com)
Date: 10/21/04
- Next message: Brenda _at_ AIM: "Re: importing different files"
- Previous message: HeatherD25: "Re: DELETE query error message"
- In reply to: John Vinson: "Re: Difference between two dates and times"
- Messages sorted by: [ date ] [ thread ]
Date: 21 Oct 2004 06:46:37 -0700
John Vinson <jvinson@STOP_SPAM.WysardOfInfo.com> wrote ...
> > I have two columns in a table. One is START_TIME the other is END_TIME and
> > they are both TIMESTAMP data types
> Are these SQL Server tables? Access (JET) tables have a Date/Time
> datatype but do not have a Timestamp.
>
> Take a look at the DateDiff() function in the VBA help. I believe it
> will work with TIMESTAMP values as well as Date/Time values but I'm
> not absolutely certain!
Does Jet have a TIMESTAMP data type? Yes and no <g>:
CREATE TABLE QuartzClocks (
MyKeyCol INTEGER NOT NULL,
start_date TIMESTAMP DEFAULT NOW() NOT NULL,
end_date TIMESTAMP NULL
);
However, TIMESTAMP merely maps to Jet's DATETIME data type.
Jamie.
--
- Next message: Brenda _at_ AIM: "Re: importing different files"
- Previous message: HeatherD25: "Re: DELETE query error message"
- In reply to: John Vinson: "Re: Difference between two dates and times"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|