Before your question can be answered, you need to clarify two points:
1.) To which of the 266 popes over the history of the papacy do you refer?
2.) Do you mean when he was ordained a priest, a bishop or installed as pope?
He was ordained in 1977.
Pope John XXIII was ordained pope on October 28th, 1958
On June 29th of that year he was ordained a priest.
He was ordained a priest on December 13, 1969.
Please specify a particular pope.
Pope Saint Pius X was ordained a priest on September 18, 1858.
Joseph Ratzinger (later Pope Benedict) was ordained a priest on June 29, 1951.
He was ordained a bishop on June 27, 1992.
He was ordained a bishop on June 27, 1992.
He was ordained a priest on June 29, 1951.
He became archbishop of Munich and Freising on March 24th, 1977.
Pope Francis was named Jorge Mario Bergoglio at birth.