check the day properly so that July 1 2012 !> January 20 2013, get rid of getDOY because it is no longer needed
Revert "check the day properly so that July 1 2012 !> January 20 2013, get rid of getDOY because it is no longer needed"

This reverts commit e8e687a4581266e94cd8281b1bbea085052cf2eb.
check the day properly so that July 1 2012 !> January 20 2013, get rid of getDOY because it is no longer needed