statistic view dates buttons get selected date from calendar