By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,841 Members | 1,704 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,841 IT Pros & Developers. It's quick & easy.

text to date - no"/" in string

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a
"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

P: n/a
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.