changing dates to match current period