module 'datetime' has no attribute 'strptime'
Use this: from datetime import datetime
instead of Import datetime
module 'datetime' has no attribute 'strptime'
Use this: from datetime import datetime
instead of Import datetime
'str' object has no attribute 'strftime'
# You should use datetime object, not str.
from datetime import datetime
cr_date = datetime(2013, 10, 31, 18, 23, 29, 227) # don't use str here
cr_date.strftime('%m/%d/%Y')
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us