A postnuptial agreement can be executed at any time during a marriage, as long as both parties agree to the terms and the agreement meets the legal requirements for enforceability.