Change the attribute of dateTime model from date class to use java.time - allows more flexibility