Novak Djokovic celebrated his 37th birthday by beating unseeded Yannick Hanfmann 6-3, 6-3 to reach the quarterfinals at the Geneva Open.