Added setDateTime function.