Skip to content

Python code snippet – How to get date in numbers ?

from datetime import datetime
shortDate = datetime.today().strftime('%Y-%m-%d')
See also  How to make circle in Python?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.