Answers for "python list of datetimes as type string"

0

python list of datetimes as type string

mondays =[datetime.date(2019, 2, 14), datetime.date(2019, 2, 21)]
[date_obj.strftime('%Y%m%d') for date_obj in mondays]
# Output:
['20190214', '20190221']
Posted by: Guest on June-10-2021

Code answers related to "python list of datetimes as type string"

Python Answers by Framework

Browse Popular Code Answers by Language