You might want to mention that you are thinking of leaving the position, maybe letting them know what your reasoning is (commute is too far, you want less/more hours, you want to work with a different age group, etc). This can let you MB know that it is something that could be happening, whether it might be 2 weeks from then or 2 months. It could also give them the chance to offer ways to change, if that might be a possibility for you at all. Gives them the feeling that they could at least try to work things out instead of you just saying out of the blue that you are leaving.
I would do it closer to the time you are ready to leave, so that if they find someone to replace you before you give actual notice, that you are ready for that. After having a simple discussion about it, then you can find the right time and sit down and write out everything you want to on paper (or email), along with mentioning when your last day will be (if they keep you until that date).
I have found it to be easier to have the subject brought up in advance and then doing the written notice makes it official with the timing, and tying everything up neatly.