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

date as yyyymmdd

Status
Not open for further replies.

Mattb7

IS-IT--Management
Oct 28, 2002
119
US
Hi, I am building a database in access 2000 and I need the date field to be shown as yyyymmdd with no / or - in it. for example in a DOB field instead of 11/01/1976 i need 19761101. Would it just be easier to save it as a number and not as a date?
 
Matt,

Check out the help for "format". Much of the time you'll be able to answer questions like this by looking through the help files.

Definitely store it as a date, if that's what it is. When you display your value, eitehr on a form or on a report, just do this:
format([MyDateField], "yyyymmd")

You will have to do it everywhere it's displayed, but it's still a better way to go about it.

Jeremy =============
Jeremy Wallace AlphaBet City Dataworks See the Developers' section for some helpful fundamentals.

See thread181-473997 for information on how to get the best responses possible here at Tek-Tips.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top