This takes the date finding functions completely out of the frontend and into their own file