bat 批處理-取年、月、日、時(shí)、分、秒、毫秒 取年份:echo %date:~0,4% 取月份:echo %date:~5,2% 取日期:echo %date:~8,2% 取星期:echo %date:~10,6% 取小時(shí):echo %time:~0,2% 取分鐘:echo %time:~3,2% 取秒:echo %time:~6,2% 取毫秒:echo %time:~9,2%