This question already has an answer here:
I work as a software engineer in the US and planned to give notice this Friday because we get our bonuses that day and I don't want to give them the chance to fire me beforehand. Friday ended up falling on a day off due to a night long monitoring the night before that I have to take part in.
Do I send an email on Friday afternoon with my resignation, or do I give them less time but do it on Monday while I'm in the office?
I've only quit one job and that was in very different circumstances so I'm not sure of the best way to keep my reputation in tact here. Either way I'm starting my new job on Monday in two weeks.