Answers for "AttributeError: module 'datetime' has no attribute 'strftime'"

4

datetime has no attribute now

#You probably have

import datetime

#change that to

from datetime import datetime
Posted by: Guest on June-20-2020
3

module 'datetime' has no attribute 'strptime'

Use this: from datetime import datetime
instead of Import datetime
Posted by: Guest on August-29-2020

Code answers related to "AttributeError: module 'datetime' has no attribute 'strftime'"

Python Answers by Framework

Browse Popular Code Answers by Language