You should give two weeks before quitting your job. Some government service and public positions may have formal policies for the required notice period.