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.
How to write an excellent resignation letter. Whatever the language, the sentiment is the same: I'm outta here. However, as a professional person, you need to express that maturely and firmly__ideally, one that doesn't alienate anyone at the job you're leaving. I'm sure we all have that fantasy where we tell off everyone who wronged us on the way out the door, but that person in the fantasy/movie/TV show never seems to have to live with the consequences afterward.