format date with leading zeroes

J

Jim Burke in Novi

How do I use the Format statement to force leading zeroes on a date? I tried
Format(myDate,"MM/DD/YYYY") but this doesn't give me the leading zeroes. Any
help is appreciated.

Thanks,

Jim B
 
T

Tom Lake

Jim Burke in Novi said:
How do I use the Format statement to force leading zeroes on a date? I tried
Format(myDate,"MM/DD/YYYY") but this doesn't give me the leading zeroes. Any
help is appreciated.

Thanks,

One way is to set the date format in your International settings in Control Panel's
Date/Time icon
In Vista it's in the Clock, Language and Region settings, Regional and Language
Options,
Change the date, time or number format.

I like that method since all my programs will be consistent.

Tom Lake
 

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