Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python f-string format date

import datetime
now = datetime.datetime.now()
print(f'{now:%Y-%m-%d %H:%M}')
Source by zetcode.com #
 
PREVIOUS NEXT
Tagged: #python #format #date
ADD COMMENT
Topic
Name
3+5 =