Ordinary resignation needs written notice at least one month in advance, which the law counts as thirty days. A shorter or immediate route needs separate facts and controls.
For ordinary resignation, choose a day at least 30 days after the notice is delivered, and not earlier than the same date next month. Example: a notice delivered on January 31 allows a last day of March 2 at the earliest (in a non-leap year), not February 28.