Your End Date. The most crucial detail in a resignation letter is your end date. Legally and according to your company's policy, you might be required to give a minimum amount of notice (two weeks, or possibly more, depending on the company and the role). If that's the case, you don't want there to be any confusion about how much notice you give. If it's right there in writing in a letter dated two weeks before your last day, you're saving yourself the hassle.
Prepare for It. Like the situation above, you should go into the conversation knowing how you'll respond if your boss asks you to extend your notice. If you've landed another job offer and have already set a start date, this may not be possible__so practice sticking to your guns: "Because I have a new opportunity lined up, my last day here is firm.