use date instead of datetime if sufficient