use M8 for datetime dtype