refactored current date creation to helper method