Linux Diary
Major Pages
(Move to ...)
Home
Python
Docker
Jenkins
Vagrant
Packer
SCCM
Windows
Application Packaging/RePackaging for Windows
Gradle
Android
Ant
Interview Questions
Powershell
C#/c sharp
Database
Maven
MSBuild
AWS
Kubernetes
Ansible
Linux and Artifactory
C++
▼
Thursday, January 10, 2019
Getting today's date in YYYY-MM-DD in Python
You can use
strftime
:
datetime
.
datetime
.
today
().
strftime
(
'%Y-%m-%d'
)
Reference
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment