hack for datetime selects