A declaration counts once it is made, and what happens to the marriage afterwards does not undo it. Your receipt or protocol number shows the date it was made.