The snippet below works on Windows XP:
%date:~6,4%-%date:~3,2%-%date:~0,2%
but this one works on Windows 2000 too:
%date:~-4,4%-%date:~-7,2%-%date:~-10,2%
Notes and remarks about Software Design, Code Craft, Continuous Integration, Automation, Quality Assurance, Release and Deployment Engineering (Dev/DevOps)
%date:~6,4%-%date:~3,2%-%date:~0,2%
Warning: of course, you must trust your local network very very very much to do this! Or find another way...

; static variables
$program_name="Firefox"
$program_path=_
"C:\Program Files\Mozilla Firefox\firefox.exe"
; set AutoIT options
AutoItSetOption("WinTitleMatchMode", 2)
; Get state of the firefox window
; (eg. 21 minimize to tray = 1 + 4 + 16 )
; (eg. 23 minimize = 1 + 2 + 4 + 16 )
$state = WinGetState($program_name)
; not runing ?
; -> launch the program
If Not $state Then
Run($program_path)
; not visible ?
; -> bring from the tray
ElseIf Not BitAND($state, 2) Then
WinActivate($program_name)
; visible and active ?
; -> MinimizeToTray
ElseIf BitAND($state, 8) Then
ControlSend ($program_name, "", ""_
, "{SHIFTDOWN}{CTRLDOWN}m{CTRLUP}{SHIFTUP}")
; visible but not active ?
; -> activate
Else
WinActivate($program_name)
WinWaitActive($program_name)
EndIf