delete unused datetime
use correct datetime class