参考:

  • http://elicecn.blog.163.com/blog/static/174017473200931910320556/
SET str="%date:~0,4%%date:~5,2%%date:~8,2%%time:~0,2%%time:~3,2%%time:~6,2%"
echo %str%

输出示例:20150325113059

说明:第一个数字代表索引位置(zero-based index),第二个数字代表去几个数字。

相关文章:

  • 2021-10-19
  • 2022-12-23
  • 2021-12-29
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-29
猜你喜欢
  • 2022-01-16
  • 2022-12-23
  • 2022-02-09
  • 2022-12-23
  • 2022-01-28
  • 2021-10-04
相关资源
相似解决方案