Re: SQL question: confused about dates
From: Bill Edwards (billedwards_at_msn.com)
Date: 01/26/05
- Next message: Duane Hookom: "Re: How to calculate the number of hours worked in a week period?"
- Previous message: Chris2: "Re: Mixed up with Relationships..help!"
- In reply to: zladnaj: "SQL question: confused about dates"
- Next in thread: Chris2: "Re: SQL question: confused about dates"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 25 Jan 2005 23:32:43 -0600
see:
http://www.mvps.org/access/datetime/date0005.htm
"zladnaj" <zladnaj.1jg5hm@news.officefrustration.com> wrote in message
news:zladnaj.1jg5hm@news.officefrustration.com...
>
> I'm creating an Access db for a student project, but I've hit a snag. I
> have to use SQL insert statements.
>
> I have defined the 2nd and 3rd fields in a table as a DATE data type.
>
> Here is my statement:
> INSERT INTO TRIP
> VALUES (263,2005-01-18,2005-01-19,'Phoenix','AZ','4023892991',3);
>
> But when I then go to the table, Access renders it like this:
>
> 263 | 6/8/1905 | 6/7/1905 | Phoenix | AZ | 4023892.......
>
> Does anyone know how I express my date values in my SQL statement so
> that they look like US-English dates, i.e. (1/18/05)?
>
> Or, is the problem with the data definition - that I've defined these
> fields as the DATE data type when they should be something else?
>
>
> --
> zladnaj
- Next message: Duane Hookom: "Re: How to calculate the number of hours worked in a week period?"
- Previous message: Chris2: "Re: Mixed up with Relationships..help!"
- In reply to: zladnaj: "SQL question: confused about dates"
- Next in thread: Chris2: "Re: SQL question: confused about dates"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|