Added in the toDateTime function