Re: Text to Date(MM/DD/YY) Conversion
From: Jayshree (anonymous_at_discussions.microsoft.com)
Date: 09/03/04
- Next message: Pete: "Visual Foxpro conversion for Access 2003"
- Previous message: Douglas J. Steele: "Re: Text to Date(MM/DD/YY) Conversion"
- In reply to: Douglas J. Steele: "Re: Text to Date(MM/DD/YY) Conversion"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 3 Sep 2004 05:05:51 -0700
Thanks for great help, it works
thanks again
>-----Original Message-----
>You should be able to use the CDate function to convert
the text date to a
>real date. If that fails, you can parse the date into the
year, month and
>day and use DateSerial to convert it: DateSerial(Mid
(TextDate, 7),
>Left(TextDate, 2), Mid(TextDate, 4, 2))
>
>Once you've got them as dates, you can use DateDiff to
compare them.
>
>--
>Doug Steele, Microsoft Access MVP
>http://I.Am/DougSteele
>(no e-mails, please!)
>
>
>
>"Jayshreeb" <anonymous@discussions.microsoft.com> wrote
in message
>news:56ce01c49185$fb6d78f0$a301280a@phx.gbl...
>> In my Access database, I have one "TEXT" field which
>> contains date in "mm/dd/yy" format & now
>> 1> I want to convert the Text data in actual Date
>> (MM/DD/YY) format
>> 2> I want to find the difference between the two dates
>> Thanks
>> Jayshree
>
>
>.
>
- Next message: Pete: "Visual Foxpro conversion for Access 2003"
- Previous message: Douglas J. Steele: "Re: Text to Date(MM/DD/YY) Conversion"
- In reply to: Douglas J. Steele: "Re: Text to Date(MM/DD/YY) Conversion"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|