How do you display a date that has a two digit year, i.e 840902, so that it
comes out as 1984 and not 2084 (from an oracle linked table). In oracle you
can specify a mask of 'rr/mm/dd''. Is there a similiary date mask/format in
access??
Access by default treats two-digit years in the following manner: 00
through 29 are in the current (21st) century; 30 through 99 are in the
20th century. Entering 8/13/84 will in fact be interpreted as 1984.
An Access Date/Time value is actually stored as a double float number:
a count of days since midnight, December 30, 1899. They can be
formatted however you like - see the Custom formats under Date in the
online help. You can use yymmdd (840902), mm/dd/yy (09/02/84),
mm/dd/yyyy (09/02/1984), or a wide variety of other formats. These
don't affect what's stored in the database, just how it's displayed.
Just how Access is interpreting your linked Oracle table date I cannot
say. If it's being recognized as a Text field or a number you may need
to parse it into a Date/Time; for example,
CDate(Mid([ODate], 3, 2) & "/" & Left([ODate], 2) & "/" &
Right([ODate], 2))
will interpret the date as mm/dd/yy and (subject to the 00-29
convention above) return the correct date.
John W. Vinson[MVP]