I have a serious problem!!! I need to compare two dates of TDate, but can't seem to make it work :-(
For instance I tried this:
procedure TForm1.Button1Click(Sender: TObject);
If dateTimePicker1.Date = dateTimePicker2.Date then
showmessage('not the same');
And no matter if I gave them the same dates or different dates, the answer was 'Not the same' :-(
I also tried to typecast into double, but also with no luck.
Please help!!! It is very important for me since it is a big part of a schoolproject which deadline is coming closer in an eksponential rate (or so it seems :-)