Why aren't you using DATECALC()/SERIALDATE() UDF(s)?

They will make your life easier.

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's