6
Belirli bir biçimde tarihi kullanmak ve aşağıdaki hatayı çalıştırmak için aşağıdaki kodu kullanıyorum .. m/d/y biçiminde tarih gösterilsin mi?AttributeError: 'str' nesnesi 'strftime' özniteliği yok
from datetime import datetime, date
def main():
cr_date = '2013-10-31 18:23:29.000227'
crrdate = cr_date.strftime(cr_date,"%m/%d/%Y")
if __name__ == '__main__':
main()
Hata: -
AttributeError: 'str' object has no attribute 'strftime'