Date format Answer

S

sparkle_guy

Thanks to Paul Hollis for his reply. For anyone in the UK who wants to use
dates in a text box in the format DD/MM/YYYY you can do it this way.

Make sure that the date format is set to DD/MM/YYYY in Control
Panel/Regional Settings/Regional options

the command Date() will give the date in this format its just when it is
displayed it is shown as MM/DD/YYYY

However mytextbox.value = cstr(date()) will show the date as DD/MM/YYYY in
the text box when the form runs.

If you need to do calculations with the date you can use the datevalue
function

Hope this is of use

Paul
 

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

Top