Yes, if you have been month-to-month and rent has been due on the first, then you need to give 30 days notice at the end of one month of your intention to move out by the end of the next month.
I agree with my colleague. The statute requires notice be based on day rent is due.
Please note that I am answering this question as a service through Avvo but not as your attorney and no attorney-client relationship is established by this posting. An attorney-client relationship can only be established through signing a Fee Agreement and paying the necessary advanced fees.