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

Date() Function

Status
Not open for further replies.

Mksmall

Technical User
Oct 18, 2001
18
0
0
US
Is there a way to use criteria with the Date() function so that it will show only the last 2 digits of the year on a form?
 
on the form, in the control's FORMAT property, put in

mm/dd/yy

(you can set it to SHORT TIME, and it might look ok on your computer, but it is dependant on how the user has their REGIONAL SETTINGS in their control panel set)

search in HELP for (copy this:)

Date fields, data display formats

you can see how mm, dd, yy, m, d, yyyy, etc work

g

 
Hi!

Use Format(Date(), "yy")

hth
Jeff Bridgham
bridgham@purdue.edu
 
Hi!

Use Format(Date(), "yy")

hth
Jeff Bridgham
bridgham@purdue.edu
 
Check out the DatePart() function in the help files. It might fit the bill.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top