Returning to Zagreb, he also continued playing for Građanski, eventually earning a callup to the Yugoslavia national team in 1940. His debut came on 3 November 1940 versus Germany in Zagreb. He would only play in three matches before the Nazi Germany invasion and quick dismemberment of Yugoslavia put an end to Yugoslav football activities. Đanić's last match in Yugoslavia jersey was also Yugoslavia's last outing–a match versus Hungary on 23 March 1941 in Belgrade.