469,580 Members | 1,978 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,580 developers. It's quick & easy.

text to date - no"/" in string

Dear NG - One would think that someone has done this before, but I
need to convert a text string in the following format 09201962 to a
date. The fact that it is missing "/" seems to be problematic. I've
experimented with most of the functions and have searched the group and
haven't been able to find any references. I don't know how to program
very well, so if we could do this in a nonprogramatic manner, that
would be great.

Thanks so much.

Mike

Nov 21 '06 #1
2 1339
"Takeadoe" <mt********@msn.comwrote in message
news:11*********************@k70g2000cwa.googlegro ups.com...
Dear NG - One would think that someone has done this before, but I
need to convert a text string in the following format 09201962 to a
date. The fact that it is missing "/" seems to be problematic. I've
experimented with most of the functions and have searched the group and
haven't been able to find any references. I don't know how to program
very well, so if we could do this in a nonprogramatic manner, that
would be great.
CDate(Format(YourValue, "00/00/0000"))

--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com
Nov 21 '06 #2
Rick -

AWESOME! Thank you very much.

Mike
Rick Brandt wrote:
"Takeadoe" <mt********@msn.comwrote in message
news:11*********************@k70g2000cwa.googlegro ups.com...
Dear NG - One would think that someone has done this before, but I
need to convert a text string in the following format 09201962 to a
date. The fact that it is missing "/" seems to be problematic. I've
experimented with most of the functions and have searched the group and
haven't been able to find any references. I don't know how to program
very well, so if we could do this in a nonprogramatic manner, that
would be great.

CDate(Format(YourValue, "00/00/0000"))

--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com
Nov 21 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by phmyhn | last post: by
13 posts views Thread by John A Grandy | last post: by
2 posts views Thread by Konstantinos Pachopoulos | last post: by
15 posts views Thread by Steve | last post: by
reply views Thread by suresh191 | last post: by
4 posts views Thread by guiromero | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.