creates scope for past days
moves formatting date to helper
Merge pull request #21 from case-eee/refactorings

Refactorings