changed date types to dateTime