Under Michigan law,
Quote Quoting MCL 554.134(1)
Except as provided otherwise in this section, an estate at will or by sufferance may be terminated by either party by 1 month's notice given to the other party. If the rent reserved in a lease is payable at periods of less than 3 months, the time of notice is sufficient if it is equal to the interval between the times of payment. Notice is not void because it states a day for the termination of the tenancy that does not correspond to the conclusion or commencement of a rental period. The notice terminates the tenancy at the end of a period equal in time to that in which the rent is made payable.
That means that, on a month-to-month tenancy, you must give a full months' notice. If you give notice on the 4th of one month, you pay rent through the 4th of the following month. If you give notice on the 23rd, you pay through the 23rd of the following month. The statute requires notice, not written notice. The lease may specify how notice is to be given, assuming it remains in effect after the initial three month period, so check its terms.