SEOUL, South Korea — North Korea’s leader, Kim Jong-un, and President Moon Jae-in of South Korea will meet for the first time on April 27, officials said on Thursday, setting a date for talks meant to extend the recent détente on the Korean Peninsula and pave the way for discussions between Mr. Kim and President Trump.

Early this month Mr. Kim agreed to a meeting with Mr. Moon, part of a flurry of diplomacy around North Korea’s nuclear program that began with the North’s participation last month in the Winter Olympics in Pyeongchang, South Korea. Senior negotiators from both Koreas met Thursday at Panmunjom, the so-called truce village on the countries’ border, to agree on a date and discuss other aspects of the summit meeting.

The two Korean leaders will meet at Peace House, a South Korean building inside Panmunjom, according to a joint statement the negotiators issued at the end of their talks on Thursday. Peace House lies south of the demarcation line that bisects Panmunjom, which means that Mr. Kim would become the first North Korean leader to set foot in the South since the Korean War.

Unification Minister Cho Myoung-gyon, the South’s chief delegate to the Panmunjom talks, hinted at progress toward including denuclearization in the agenda for the Kim-Moon meeting. But he said the two Koreas might need another round of high-level talks in coming weeks to settle the matter.