Original: The city of Trondheim was established as a municipality on 1 January 1838 ( see formannskapsdistrikt ) .
Simplified: The city of Trondheim became a municipality January 1 , 1838 .