working date range function, working on default dates for frontend