Fix: select_date accepts -1 or '' but not 0