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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Date format 1

Status
Not open for further replies.

McFestoe

Technical User
Dec 16, 2003
145
GB
Hi,

On a report i have a field for the current date which works with =date() and displays the date as dd/mm/yy i have tried different formats of date but i need it to be displayed as dd/mm/yyyy is this possible, and where do i look, oh it only needs to be in one field all the other date fields need to be kept as dd/mm/yy.

Thanks
 
Use the format statement:
[code}
= format(now, "mm/dd/yyyy")
[/code]
 
Actually, if this is a control source of a text box, you must add the ()s after Now. You could also use:
=Format(Date(),"mm/dd/yyyy")

Duane
MS Access MVP
Find out how to get great answers faq219-2884.
 
Thanks for the replies, and your quick help.

It has work in a box that uses the current date but if a old date is stored in a field how do you get it to be dd/mm/yyyy format do i need to setup a input mask.

Thanks

 
Do you need the text box updateable or is it just for viewing. If view only, use the same function substituting your field name for Date(). If you need to edit and the setting the FORMAT Property doesn't work, you may have to either set the input mask or change the regional settings in the control panel.

Duane
MS Access MVP
Find out how to get great answers faq219-2884.
 
dhookom

Your a star ! did not think of the simple things always look at other things and making it hard for myself, sort it with windows regional settings. I cant belive after weeks of trying it was so simple.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top