How to quit on the same day
Remember that, according to the law, you have to work another 14 days, if the authorities insist on it. During this time, the employer must find you a replacement, and you in turn - to transfer duties to another person or a new employee. Try to talk with the management and explain the reason why you need to leave your job immediately. If you have a good relationship with the boss, he can go to meet you and not leave you for work off. Try also to speed up the search for your replacement - submit an application, recommend the management of friends who are looking for work, arrange with colleagues about the temporary transfer of your duties to them, etc.
Take advantage of some tricks that provide for legislation, if the authorities do not want to let you go ahead of time. Immediately after applying, go to the sick leave, and then you can not appear at work for the time you need. These days will still be considered "spent". As an alternative, write an application for leaving for another vacation or at your own expense. However, in this case, the date of dismissal should be the first working day after the end of leave.
Refer to other amendments to the labor law, providing for the possibility not to stay at work for two extra weeks. Think whether all the terms of the employment contract were observed by the authorities during the time of your work. For example, if payment is delayed, the work order is violated, etc. you have the right to write a letter of resignation indicating these reasons. In this case, you can leave work on the day of dismissal, if the leadership finds your complaints justified.
Try to give up two weeks of work in connection with an emergency situation, for example, an urgent move to another city, a relative's illness, admission to study or retirement. The management can go to a meeting and meet you under certain conditions.