The agreement was accepted by both the European Parliament and the Danish Parliament on 27 April 2017 and subsequently signed on 29 April 2017—two days before Denmark would have been cut off from the Agency.