procedure TForm1.btn1Click(Sender: TObject);var S: string; D: TDateTime; I: Word; ST: TSystemTime;begin DateTimeToSystemTime(Now, ST); I := ST.wYear; ShowMessage(IntToStr(I)); D := StrToDate(IntToStr(I) + '-1-1'); ShowMessage(DateToStr(D)); D := StrToDate(IntToStr(I+1) + '-1-1')-1; ShowMessage(DateToStr(D));end;