Update date_helper.php

optimized the code, replace 2 nested if with a single if along with &&.
removed blank lines and unnecessary tabs.
Update date_helper_test.php

removed blank line at the end of the file.
Merge pull request #2 from zegulas/patch-1

updated date_helper.php