We're to assume you're a month-to-month tenant?

Your landlord terminated your tenancy as of the end of the thirty day notice period. You owe rent through the end of your tenancy. Obviously, as less than thirty days remain in your tenancy, you cannot give your thirty day's notice and end your tenancy on an earlier date.