The mayor and councilmen of said city shall go into office on the first day of January of the year following their election and shall hold office until the thirty-first day of December of the year in which their successors are elected.