Hello,
I have a function which determines if a date is in a "leap year". I need to pass the date as
datatype but I recreive it as
. The complier doesn't complain but I don't get the required result. If I hardcode a date in a
variable it seems to work fine. Has anyone encountered anything like this?
example:
This works (returns true)
This compiles but returns false.
Thnx a lot.
I have a function which determines if a date is in a "leap year". I need to pass the date as
Code:
TDateTime
Code:
word
Code:
TDateTime
example:
This works (returns true)
Code:
var date: TDateTime;
date:=strtodatetime('1/1/2004');
isLeapYear(date);
Code:
var date: Word;
date:=2004;
isLeapYear(date);
Thnx a lot.