C:/Documents and Settings/Administrator>rem DOS get current time
C:/Documents and Settings/Administrator>rem =======================
C:/Documents and Settings/Administrator>rem get yyyy/mm/dd
C:/Documents and Settings/Administrator>set mydate=2013-07-22
C:/Documents and Settings/Administrator>echo 2013-07-22
2013-07-22
C:/Documents and Settings/Administrator>rem =======================
C:/Documents and Settings/Administrator>rem get yyyy
C:/Documents and Settings/Administrator>set yyyy=2013
C:/Documents and Settings/Administrator>echo 2013
2013
C:/Documents and Settings/Administrator>rem =======================
C:/Documents and Settings/Administrator>rem get mm
C:/Documents and Settings/Administrator>set mm=07
C:/Documents and Settings/Administrator>echo 07
07
C:/Documents and Settings/Administrator>rem =======================
C:/Documents and Settings/Administrator>rem get dd
C:/Documents and Settings/Administrator>set dd=22
C:/Documents and Settings/Administrator>echo 22
22
C:/Documents and Settings/Administrator>rem =======================
C:/Documents and Settings/Administrator>rem get yyyy-mm-dd
C:/Documents and Settings/Administrator>set curdate=2013 -07 -22
C:/Documents and Settings/Administrator>echo 2013 -07 -22
2013 -07 -22
C:/Documents and Settings/Administrator>
新闻热点
疑难解答