ltNow = Datetime() ? 'Now',Datetime() SetSystemDate({^2002/1/3 17:30:33}) && set to an arbitrary time for testing ? 'Set to',Datetime() && get current datetime SetSystemDate(m.ltNow) ? 'Set back to',Datetime() Function SetSystemDate Lparameters tdDate Declare Integer SetLocalTime In win32api String @ lpTime Declare Integer GetLocalTime In win32api String @ lpTime Local lpCurrent, lcNewTime lpCurrent = Space(40) GetLocalTime(@lpCurrent) && save current lcNewTime = Num2Word(Year(m.tdDate))+; Num2Word(Month(m.tdDate))+; Num2Word(0)+; Num2Word(Day(m.tdDate))+; Num2Word(hour(m.tdDate))+; Num2Word(minute(m.tdDate))+; Num2Word(sec(m.tdDate))+; Num2Word(0) SetLocalTime(@lcNewTime) SetLocalTime(@lcNewTime) EndFunc Function Num2Word Lparameters tnDecimal Return Chr(m.tnDecimal%256)+Chr(Int(m.tnDecimal/256)) EndFuncCetin