Fixed sa bug in SUBSTR selection to ignore :30 times when too many dates were selected.