A primary election for the nomination of candidates for all elective municipal offices to be filled at the succeeding general municipal election shall be at a date and time to be established by ordinance or resolution of the city council and in conformity with state law.