move the daterange-helper into the component