Fix: select_date accepts -1, '' or a date but not '0'