>Hi Jim Booth,
>
> Try to create an exe file and run the program. You will find that one of the date result is showing wrong.
>
>Regards
>
>Amit
Amit,
The date is not showing wrong, it is showing the value based on the SET DATE setting at the time the code was compiled. Teh date literals are converted to date values at compile time based on the SET DATE at compile time.