[英]Date in format of YYYYMMDD rather than YYYY-MM-DD in python
The files I need to move has a pattern of date like this: 20190328
.我需要移动的文件具有这样的日期模式:
20190328
。
My datetime module gives me the date as YYYY-MM-DD
.我的 datetime 模块给了我
YYYY-MM-DD
的日期。 How can I get the date in form YYYYMMDD
?如何以
YYYYMMDD
形式获取日期?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.