Date Formula

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a date format, 20051201, what is the formula to convert to 12/02/2005
 
What's the value stored in: a number, or a string?

For a string, try DateSerial(Left$(DateField, 4), Mid$(DateField, 5, 2),
Right$(DateField, 2))

For a number, try CDate(Format(DateField, "0000\-00\-00"))
 

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