Date Format without the "/"

  • Thread starter Thread starter erick-flores
  • Start date Start date
E

erick-flores

Hello all

How do I format my date so the user can enter the date without the
"/". Example:

Right now (enter by user): 02/27/07 Final Result: 2/27/2007
I want (enter by user): 022707 Final Result: 2/27/2007



Thanks
 
For those that would like to know the answer.
Set the field to a string.

Then run the format function over the top

Format("[fieldname]", "dd/mm/yyyy")

This will format what ever is in fieldname into the format dd/mm/yyyy
 
Anthos said:
For those that would like to know the answer.
Set the field to a string.

Then run the format function over the top

Format("[fieldname]", "dd/mm/yyyy")

This will format what ever is in fieldname into the format dd/mm/yyyy
 

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