Change Date Format

C

Charles Deng

Good morning, everybody!

Now I have a question: Can I change date format on my
report?

On design page, I wrote
=Now()


This coding gives Day and Date, such as Friday, September
10, 2004

Is there any way I change the code to only show Date, like:

September 10, 2004

Any advice will be highly appreciated.

Charles
 
M

Marshall Barton

Charles said:
Now I have a question: Can I change date format on my
report?

On design page, I wrote
=Now()


This coding gives Day and Date, such as Friday, September
10, 2004

Is there any way I change the code to only show Date, like:

September 10, 2004


When you don't specify a format for a text box, it uses the
data type and Access/System settings. Since those setting
can be changed outside your application, it's better to
specify the Format property of each control in a
form/report. In your case, you can use:

mmmm d, yyyy

See Format Property in Help for all of the many formatting
codes.
 
D

Douglas J. Steele

In addition to what the others have told you, if all you want is the date,
use the Date() function, not the Now() function.
 

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