procedure TMainForm.FormCreate(Sender: TObject);
var
ADate: TDateTime;
days: array[1..7] of string;
Year, Month, Day: Word;
begin
days[1] := '星期日';
days[2] := '星期一';
days[3] := '星期二';
days[4] := '星期三';
days[5] := '星期四';
days[6] := '星期五';
days[7] := '星期六';
ADate:= date();
DecodeDate(adate, Year, Month, Day);
StatusBar1.Panels[1].Text := ' '+inttostr(Year)+ '年'+ inttostr(Month) +'月'+inttostr(Day)+'日 ' + days[DayOfWeek(ADate)];
end;