Category: Math
Title: Decode a TDate type
Date added: 15.03.2006
Hits: 3872
procedure TForm1.Button1Click(Sender: TObject);
const
Year, Month, Day: Word;
begin
DecodeDate(Date, Year, Month, Day);
Label1.Caption := IntToStr(Year); // 2001
Label2.Caption := IntToStr(Month); // 12
Label3.Caption := IntToStr(Day); // 12
end;