Hey Pradyna,
Good Question.
As answered by few experts its:
1. Within Notice period
2. And also as per the discretion of the Management.
What I wanted to add was, usually after the resignation letter is received and managemts accept the same, they will look for a replacement and spend time and efforts. So provide you had good repo, ideally management should accept your withdrawl of resignation.
You know the saying, its take double the money and effort to train a new staff then retain good one.
So, All the best.
Regards
Ukmitra