You should hand in your resignation letter when you are officially quitting your job. This will serve as an official document for HR.