change date types to dateTIme