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  Java code snippet - How to use asynx task to make api connecti?

Leave a Reply

Your email address will not be published.

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