Each person elected or appointed to any township office, shall, within ten days after receiving notice of election or appointment and before entering upon the discharge of the officer's duties, take and subscribe an oath or affirmation as required by §