Table with date instead of datetime and add validation