Howto set date or time enironment under DOS or Win9X with DATETIME in a batchfile Example batchfile: @echo off datetime set DATE1=!d/!m/!y > date1.bat call date1.bat echo %DATE1% thats all info: the %DATE1% variable is only during the batchfile available