changed date field to datetime