Format a date

  • Thread starter Thread starter SAC
  • Start date Start date
S

SAC

I'm getting data from another computer and the dates are like this:

20050622

Do I have to parse the string and then put it back together or is there a
better was to handle it?

Thanks.
 
SAC said:
I'm getting data from another computer and the dates are like this:

20050622

Do I have to parse the string and then put it back together or is
there a better was to handle it?

Thanks.

I would use...

DateSerial(Left(YourField, 4), Mid(YourField, 5, 2), Right(YourField, 2))
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top