Convert date into text

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

Guest

Could someone please explain how to convert a date back into text. As in
31/03/06 to 20060331. Thanks
 
Here's an easy way, assuming that the date format of dd/mm/yy that you show
is in your local settings and that the date is a date value:

Format(TheDateValue, "yyyymmdd")
 
Thank you worked just fine.

Ken Snell (MVP) said:
Here's an easy way, assuming that the date format of dd/mm/yy that you show
is in your local settings and that the date is a date value:

Format(TheDateValue, "yyyymmdd")
 

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