datetime type design