fixed bug where single digit dates were getting ignored