2008-12-15 DOS で日付を整形して出力する DOS >set now=%date% >echo %now% 2008/12/15 >set today=%now:~0,4%-%now:~5,2%-%now:~8,2% >echo %today% 2008-12-15