You're married up to the date the divorce judgment is entered. For an overview of divorce, read this.