fix compat issue
CDate might not be defined