make date and datetime as selects