>clear >? DATETIME(100,12,31,0,0,0)-(365*100+329)*86400 >? DATETIME(100,12,31,0,0,0)-(365*100+329)*86400-1 && look the day ! exists a little bug here, expected empty >? DATETIME(100,12,31,0,0,0)-(365*100+330)*86400 && the last computed datetime >? DATETIME(100,12,31,0,0,0)-(365*100+330)*86400-1 && now the C++ routine trap the bad value > >minCorrectDatetime = DATETIME(100,12,31,0,0,0)-(365*100+329)*86400 > >minComputedDatetime = DATETIME(100,12,31,0,0,0)-(365*100+330)*86400 >* probe datetime C++ functions >? DAY(minComputedDatetime) ,DAY(minCorrectDatetime) >? TTOC(minComputedDatetime) ,TTOC(minCorrectDatetime) >? DMY(minComputedDatetime) ,DMY(minCorrectDatetime) >? MDY(minComputedDatetime) ,MDY(minCorrectDatetime) >* NOW YOU HAVE SMASHED the limit of 03-01-0000 >? TTOD(minComputedDatetime) ,TTOD(minCorrectDatetime) >* try on a variable >x = TTOD(minComputedDatetime) >? x && not checked >? x+0 && but this comes checked >