by_day method now formats the dates. In desparate need of refactoring