SetLocalTime<br><br>SetSystemTime <br><br>eg:<br>procedure TForm1.Button1Click(Sender: TObject);<br>var MyST:TSystemTime;<br>begin<br> MyST.wYear:=2000;<br> MyST.wMonth:=4;<br> MySt.wDay:=1;<br> MySt.wHour:=17;<br> MySt.wMinute:=20;<br> MySt.wSecond:=20;<br> if SetSystemTime(MyST) then ShowMessage('Change successfully')<br> else ShowMessage('Change failed');<br>end;<br>