>Cetin
>
>
> Thank you very much, i will check the code knowing is going to work.
>
>
> BGarcia.
It works but as Larry pointed out use SetLocalTime and GetLocalTime instead of SetSystemTime, GetSystemTime. Also be sure to call SetLocalTime twice :
SetLocalTime(@newTime)
SetLocalTime(@newTime)
otherwise you might use wrong daylight saving and probably off 1 hr.
Cetin