@Tod ********
OP asked "I know that when I return to Thailand I have to show immigration both new passport and old but my question is where should I let them stamp the entry stamp?"
Like the staff at my consulate told me, you can't get a new passport without cancelling the old one. Once your new passport is cancelled, they give you your new passport. The transfer and the validity of the stamps is separate from the validity of passport, though.