The best case scenario is that you tell them ahead of time and they are agreeable and supportive. The worst case scenario, if it's at-will employment, is that they terminate you immediately. If other employees in your company have given notice far in advance and they've been treated well then you're probably fine, but it's always a possibility that your employer may use this knowledge to their advantage.