If an income tax payer has a spouse for only part year,

Go to the Spouse, click on Settings, click on Relationships, update "Start Date" and "End Date"