ACC: How to Display Only the Last Two Digits of Any YearID: Q95907
|
Moderate: Requires basic macro, coding, and interoperability skills.
This article describes how to display only the last two digits of the
year. The expression
=Year(Now())
=Format(Now(),"yy")
-or-
=Right(Str(Year(Now())),2)
=Year(Now()) Mod 100
For more information about the first expression, search the Help Index for
"formatting dates," or ask the Microsoft Access 97 Office Assistant.
For more information about the elements in the second expression, search
the Help Index for "year," "right," "str," or "now."
Keywords : kbusage ExrOthr
Version : 1.0 1.1 2.0 7.0 97
Platform : WINDOWS
Issue type : kbhowto
Last Reviewed: March 19, 1999