Linux Diary
Major Pages
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
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment