long dateserial(long y,long m,long d)
To me the easiest technique for working with date and time
calculations on the PC is to implement DateSerial and TimeSerial.
The following DateSerial counts the number of days since 1-1-0001. A
TimeSerial counts the number of seconds since 00:00:00.