Your marital status for filing purposes is determined as of the last day of the year.