Democratic candidates Hillary Clinton and Sen. Bernie Sanders have agreed to a debate in Brooklyn on April 14, according to CNN. View Full Caption Getty/Darren McCollester; Getty/Scott Olson

NEW YORK CITY — Democratic candidates Hillary Clinton and Sen. Bernie Sanders have agreed to a debate at the Brooklyn Navy Yard on April 14, according to CNN, which will host the debate.

The Democratic presidential candidates will appear on CNN and NY1 just five days before the New York primary election.

► READ MORE: BERNIE SANDERS' MAJOR RALLY PLANNED FOR WASHINGTON SQUARE PARK

The debate will be held at 9 p.m. at the Duggal Greenhouse in the Brooklyn Navy Yard. It will be moderated by CNN anchor Wolf Blitzer with questions coming from CNN chief political correspondent Dana Bash and NY1 political anchor Errol Louis, according to CNN. The New York Daily News will also participate, according to NY1.

The announcement came just hours after Sanders campaign spokesman Michael Briggs told DNAinfo New York that the Vermont senator would speak at a rally in Washington Square Park on April 14 but might change the plan if the campaign acquiesced to the Clinton campaign's request to hold a debate that same night.

In a separate statement Monday evening, Briggs said the campaign would move the Washington Square Park rally to April 13.

The campaign had previously been secretive about the location of its rally, indicating only that it had secured a "difficult to obtain" permit for a "highly coveted Manhattan location."

Mayor Bill de Blasio inserted himself into the fray earlier Monday by vowing to secure for the candidate any permit he needs as long as he agrees to debate Clinton on April 14 in Brooklyn.