I'm just now looking into modifying the system date on one our test systems as well. I've been searching the documentation, forums, FAQ's, and whatever else I can think of and haven't really found a definitive answer to this.
I won't get a chance to do this for a few days though.
I'm thinking that before issuing the 'SYS_Execute("Date 6/1/2006")' command that the script file should save the current date into a variable. And then at the end of the test, use the value in the variable to reset the date. But I haven't tried it. So I'm not 100% sure that it'll work or that there won't be some other ramifications.
I checked the above scenario and it worked. Before executing the SYS_Execute("Date") command store the system date into the variable having the same format and then after the test execution reset the system date back.
Tried Scott Huerta and K R K Reddy's suggestion.
I set a variable (restoreSystemDate) within the .t file (not at a testcase level) and assigned the current date to it formatted as a string, i.e. '08/01/2005'. During my testcases I use the Sys_Execute command to set the date back in time; i.e. '06/1/2005'. In the last testcase in the .t file, I use -- Sys_Execute ("Date restoreSystemDate") but somehow this variable picks up the system date set during my testcases and not the one stored at the beginning.
Cannot use the net time command, our server does not have a Novel client. We've had a lot of problem with Test Manager and this was one of our tries to solve the problem.