fixed date validation on stats view

author: dpseaman