Hey Pradnya,
Good question.
As answered by a few experts, it's:
1. Within the notice period
2. And also at the discretion of the management.
What I wanted to add was, usually after the resignation letter is received and management accepts the same, they will look for a replacement and spend time and effort. So, provided you had a good rapport, ideally, management should accept your withdrawal of resignation.
You know the saying, it takes double the money and effort to train a new staff than to retain a good one.
So, all the best.
Regards,
Ukmitra