Hi Mikey,
Reread Norman's reply. Converting a serial number back to
a date format is done in Excel. Dates are stored as numbers
from Dec 31, 1899 not as components as you write them.
As long as you are in a range from March 1, 1900 thereafter
you will have not problem.
If you want to see what Excel actually used for a date look at:
A1: 01/04/2004 B1: =A1 (format as #) displays 38078
A2: 31/03/2004 B2: =A2 (format as #) displays 38077
Time is stored as fractional dates. 38078.5 would be noon April 1st, 2004.
More information on Date and Time
http://www.mvps.org/dmcritchie/excel/datetime.htm
One of the serious drawbacks of some older mainframe programs was
that every programmer had to write their own date routines because
they were not supplied with compilers. This is not the case for working
with PC applications -- it is builtin.
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages:
http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page:
http://www.mvps.org/dmcritchie/excel/search.htm