Fix Attributeerror Type Object Datetime Datetime Has No Attribute

Fix Attributeerror Type Object Datetime Datetime Has No Attribute