You probably want import datetime
, not from datetime import datetime
.
date
is a class on the datetime module, but it is also a method on the datetime.datetime
class.
You probably want import datetime
, not from datetime import datetime
.
date
is a class on the datetime module, but it is also a method on the datetime.datetime
class.