changed date type to dateTime