AttributeError: module 'datetime' has no attribute 'strftime' code example
Example 1: module 'datetime' has no attribute 'strptime'
Use this: from datetime import datetime
instead of Import datetime
Example 2: datetime has no attribute now
#You probably have
import datetime
#change that to
from datetime import datetime