avoid selection of period starting and ending outside current month