Danielle, a calendar year taxpayer, lists her principal residence with a realtor on February 7, 2019, enters into a contract to sell on July 12, 2019, and sells (i.e., the closing date) the residence on August 1, 2019. The realized gain on the sale is $225,000. Which date is the appropriate ending date in determining if the residence has been owned and used by the Danielle as the principal residence for at least two years during the prior five-year period?