Re: Date Conversion
From: Tom Ellison (tellison_at_jcdoyle.com)
Date: 10/04/04
- Next message: Tom Ellison: "Re: Column Totals in CrossTab Query"
- Previous message: Tom Ellison: "Re: help needed counting unique values"
- In reply to: Dave Waling: "Date Conversion"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 04 Oct 2004 15:27:32 -0500
Dear Dave:
First, I recommend making a string of it MM/DD/YYYY:
MID([OriginalDate], 5, 2) & "/" & RIGHT(OriginalDate, 2) & "/" &
LEFT([OriginalDate], 4)
Take a look at this text to see it is MM/DD/YYYY. Then add a CDate()
around it:
CDATE(MID([OriginalDate], 5, 2) & "/" & RIGHT(OriginalDate, 2) & "/" &
LEFT([OriginalDate], 4))
Check that this appears to work properly. By putting the original
string next to the converted date column you can do this easily and
quickly.
Tom Ellison
Microsoft Access MVP
Ellison Enterprises - Your One Stop IT Experts
On Mon, 4 Oct 2004 12:48:10 -0700, "Dave Waling"
<anonymous@discussions.microsoft.com> wrote:
>I'm linking to a maninframe database and in access it
>converts dates to a text data field in the format of
>yyyymmdd. This is formatted as text and I can't change
>the original database.
>
>How can I convert the text data into a date format in
>Access that I can use in regular Queries?
- Next message: Tom Ellison: "Re: Column Totals in CrossTab Query"
- Previous message: Tom Ellison: "Re: help needed counting unique values"
- In reply to: Dave Waling: "Date Conversion"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|