Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Date formatting question... 1

Status
Not open for further replies.

PaulChilds

Technical User
May 21, 2002
195
Hi,

I want to put a date on a report. The date is the day and time that the report was printed/viewed. I have no problem putting in =Now() but the format in which I want it to appear is not so easy.

I want to use the medium date format (19-Aug-01) and have the medium time follow it (05:45 am), but I want the time to be in brackets, so it should look something like:

19-Aug-01 (05:45 am).

Any ideas?

Paul C
 
Hi

Format(now(),"dd-mmm-yy (hh:mm)")

Regards

Ken Reay
Freelance Solutions Developer
Boldon Information Systems Ltd
UK
 
Hi

Sorry, missed that in your post

Format(now(),"dd-mmm-yy (hh:mmAMPM)") Regards

Ken Reay
Freelance Solutions Developer
Boldon Information Systems Ltd
UK
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top