datetime can handle date type