Question: When did Denmark lose control of Frederiknagore?

full_context: Document 1: Denmark: Denmark ( ; Danish: "Danmark" , ] ), officially the Kingdom of Denmark, is a Nordic country and a sovereign state. The southernmost of the Scandinavian nations, it is south-west of Sweden and south of Norway, and bordered to the south by Germany. The Kingdom of Denmark also comprises two autonomous constituent countries in the North Atlantic Ocean: the Faroe Islands and Greenland. Denmark proper consists of a peninsula, Jutland, and an archipelago of 443 named islands, with the largest being Zealand, Funen and the North Jutlandic Island. The islands are characterised by flat, arable land and sandy coasts, low elevation and a temperate climate. Denmark has an area of 42924 km2 , total area including Greenland and the Faroe Islands is 2210579 km2 , and a population of 5.75 million (as of 2017 ).
Document 2: Kolkata: Kolkata is the capital of the Indian state of West Bengal. Located on the east bank of the Hooghly River, it is the principal commercial, cultural, and educational centre of East India, while the Port of Kolkata is India's oldest operating port and its sole major riverine port. In 2011, the city had a population of 4.5 million, while the population of the city and its suburbs was 14.1 million, making it the third-most populous metropolitan area in India. Recent estimates of Kolkata Metropolitan Area's economy have ranged from $60 to $150 billion (GDP adjusted for purchasing power parity) making it third most-productive metropolitan area in India, after Mumbai and Delhi. Kolkata (] is also known as Calcutta , the official name until 2001).
Document 3: Chittagong: Chittagong is a major coastal seaport city and financial centre in southeastern Bangladesh. The city has a population of more than 2.5 million while the metropolitan area has a population of 4,009,423 at the 2011 Census, making it the second largest city in the country. It is the capital of an eponymous district and division. The city is located on the banks of the Karnaphuli River between the Chittagong Hill Tracts and the Bay of Bengal. Much of Chittagong Division is located within the ecological Indo-Burma zone on the boundary of the India Plate and Burma Plate. This makes Chittagong the crossroads of the Indian subcontinent and Southeast Asia. The port city has been known by various names in history, including Chatigaon, Chatigam, Chattagrama, Islamabad, Chattala, Chaityabhumi and Porto Grande De Bengala.
Document 4: Danish India: Danish India was the name given to the colonies of Denmark (Denmark–Norway before 1813) in India, forming part of the Danish colonial empire. Denmark–Norway held colonial possessions in India for more than 200 years, including the town of Tharangambadi in present-day Tamil Nadu state, Serampore in present-day West Bengal, and the Nicobar Islands, currently part of India's union territory of the Andaman and Nicobar Islands. The Danish presence in India was of little significance to the major European powers as they presented neither a military nor a mercantile threat. Dano-Norwegian ventures in India, as elsewhere, were typically undercapitalised and never able to dominate or monopolise trade routes in the same way that the companies of Portugal, the Netherlands and Britain could. Against all odds however they managed to cling to their colonial holdings, and at times, to carve out a valuable niche in international trade by taking advantage of wars between larger countries and offering foreign trade under a neutral flag. For this reason their presence was tolerated until 1845, when their alliance with a defeated France led to the colony being ceded to the British East Indian company.
Document 5: Serampore: Serampore (also called Serampur, Srirampur, Srirampore, Shreerampur, Shreerampore, Shrirampur, Shrirampore, Srerampore) is a famous and historical city in the Indian state of West Bengal. It is the headquarter of the Srirampore subdivision. It is a part of the area covered by Kolkata Metropolitan Development Authority. It is a pre-colonial town (city) on the west bank of the Hooghly River. It was part of Danish India under the name Frederiknagore from 1755 to 1845.
Document 6: List of colonial Residents of Dutch Timor: This is a list of colonial Residents of Dutch Timor from the mid-seventeenth century to decolonization in 1949. Colonial rivalry on Timor between the Dutch East India Company (VOC) and the Portuguese began in 1613, conditioned by the desire to control the sandalwood trade in the region. The Dutch were permanently established on the island Solor, to the north of Timor, from 1646. In 1653 they founded a fortress in Kupang in West Timor, Fort Concordia, and made it their main regional base in 1657. The fortress was headed by a colonial Resident who, during the VOC era, carried the name "opperhoofd". The territory controlled by the VOC on Timor was originally restricted to the vicinity of Kupang, the so-called "sespalen gebied". After 1749 large parts of West Timor fell under Dutch suzerainty, although attempts to subjugate areas in East Timor were thwarted by 1761. The VOC was dissolved in 1799 and replaced by a new colonial organization under the Batavian Republic. Fort Concordia capitulated to the British in January 1812 and stood under British rule until 1816 when it was returned to the new Kingdom of the Netherlands. Agreements with the Portuguese in 1851 and 1859 established the borders between Dutch and Portuguese Timor. In the late colonial period the Residency of Timor and Dependencies ("Timor en Onderhoorigheden") consisted of West Timor, Roti, Savu, Sumbawa, Flores, the Solor Islands, and the Alor Islands. The Dutch administration was ousted through the Japanese attack in 1942. The Dutch, assisted by a force from Australia returned in the fall of 1945. During the Indonesian Revolution in 1945-49 there was widespread republican and anti-colonial agitation, but no physical fighting. The last Dutch Resident A. Verhoef handed over his powers to a new Indonesian administration in late 1949.
Document 7: Bijpur, North 24 Parganas: Bijpur is a city with a police station in Barrackpore subdivision of North 24 Parganas district in the state of West Bengal, India. It has a rich heritage. It mainly consists of three adjacent towns, namely Kanchrapara, Halisahar, and Hazinagar, the largest being Kanchrapara, with an area of 9.8 sq. km. The town, Kanchrapara, is old and developed towns. In recent years, the area of Kanchrapara has attracted large multinational business companies, including. There is Kanchrapara Railway Workshop, near Bijpur police station which was established in 1863, now serving as a department of the Indian Railways. Halisahar is another town lying to the south of Kanchrapara. It ranked first in the category of the cleanest city of West Bengal. This town has the well knowned Ramprasad Kalibaari or birth place of Ramprasad Sen. Hazinagar is a sub-urban area, slightly underdeveloped than Kanchrapara and Halisahar. The maximum area of Bijpur situated in the bank of Bhagirathi River.
Document 8: Dhaka: Dhaka (Bengali: ঢাকা , ] ; or ) is the capital and largest city of Bangladesh. The name of the city was spelled as "Dacca", which was an anglicisation name until the current spelling was adopted in 1983 to match with Bengali pronunciation. Located in an eponymous district and division, it lies along the east bank of the Buriganga River in the heart of the Bengal delta. The city is a microcosm of the entire country, with diverse religious and ethnic communities. Dhaka is the economic, cultural and political center of Bangladesh. It is a major financial center of South Asia. It is one of the world's most populated cities and within OIC countries, with a population of 17 million people in the Greater Dhaka Area. It is also the 4th most densely populated city in the world.
Document 9: Sirpur (Chhattisgarh): Sirpur is a historical town in Mahasamund district in the state of Chhattisgarh 78 km away from Raipur and 35 km from Mahasamund city on the banks of the river Mahanadi. The town of Sirpur (aka Shirpur) has been mentioned in ancient epigraphic records, dating back to the 5th to the 8th centuries A.D. The city was once the capital of the Sarbhapuriya and Somvanshi Kings of Dakshin (south) Kosala state. It was an important centre of Buddhist from the 6th the 10th century A.D. and was visited by Hieun Tsang, the 7th Century Chinese Pilgrimist and Scholar. The beauty of this magical place has beckoned the presence of the Dalai Lama too in March 2013.
Document 10: Denmark–Norway: Denmark–Norway (Danish and Norwegian: "Danmark–Norge ") was an early modern multi-national and multi-lingual real union consisting of the Kingdom of Denmark, the Kingdom of Norway (including Norwegian regions Faroe Islands, Iceland, Greenland, et cetera), the Duchy of Schleswig, and the Duchy of Holstein. The state also claimed sovereignty over two historical peoples: Wends and Goths. In addition, the state included colonies: St. Thomas, St. John, St. Croix, Ghana, Tharangambadi, Serampore, and Nicobar Islands. The state's inhabitants were mainly Danes, Norwegians (along with Inuit and Sami), and Germans. The state's largest cities were Copenhagen, Altona, Bergen, Trondheim, and Christiania (Oslo).
Document 11: Jangipur(WB): Jangipur is a city in Murshidabad in West Bengal, India situated on the banks of the Bhagirathi. The town is said to have been founded by the Mughal emperor Jahangir. That is why this city also known as Jahangirpur. During the early years of British rule it was an important centre of the silk trade, and the site of one of the East India Company's commercial residencies.
Document 12: Geography of Denmark: Denmark is a Nordic country located in Northern Europe. It consists of the Jutland peninsula and several islands in the Baltic sea, referred to as the Danish Archipelago. Denmark is located southwest of Sweden and due south of Norway and is bordered by the German state (and former possession) Schleswig-Holstein to the south, on Denmark's only land border, 68 kilometres (42 miles) long.
Document 13: Fort Dansborg: Fort Dansborg, locally called Danish Fort, is a Danish fort located in the shores of Bay of Bengal in Tharangambadi in the South Indian state of Tamil Nadu. Fort Dansborg was built in the land ceded by Thanjavur king Ragunatha Nayak in an agreement with Danish Admiral Ove Gjedde in 1620 and acted as the base for Danish settlement in the region during the early 17th century. The fort is the second largest Danish fort after Kronborg. The fort was sold to the British in 1845 and along with Tharangambadi, the fort lost its significance as the town was not an active trading post for the British. After India's independence in 1947, the fort was used as an inspection bungalow by the state government till 1978 when the Department of Archaeology, Government of Tamil Nadu took over the control of the fort. The fort is now used as a museum where the major artifacts of the fort and the Danish empire are displayed.
Document 14: New Town, Kolkata: New Town, is a fast-growing planned satellite city and a neighbourhood of Kolkata (earlier, Calcutta), located partly in North 24 Parganas district and South 24 Parganas district of the Indian state of West Bengal. This new information technology and residential hub is being developed on the north-eastern fringes of Kolkata. It consists of areas of two erstwhile villages Rajarhat and Bhangar, which is now a statutory planned development area. The area mainly consisted of huge acres of cultivable lands and water bodies, which have been acquired and developed in a planned manner. The process of investing in residential and industrial facilities and infrastructural development of the area has mainly started under the leadership of the then Chief Minister of West Bengal Buddhadeb Bhattacharya in the late 1990s. The master plan envisions a township which is at least three times bigger than the neighbouring planned Salt Lake City. The New Town (Rajarhat) has been also declared as a "Solar City" by the previous UPA government at the Centre and now the initiatives are being taken to declare this city as "Smart Green City", a dream project of Narendra Modi (Prime Minister of India) with the help of Government of West Bengal according to a proposal submitted by Mamata Banerjee (Chief Minister of West Bengal).
Document 15: Battle of Chandannagar: In 1757 war broke out between France and Great Britain, and Colonel Robert Clive of the British East India Company and Admiral Charles Watson of the Royal Navy bombarded and captured Chandannagar on 23 March 1757. The town's fortifications and many houses were demolished thereafter, and Chandannagar's importance as a commercial centre was eclipsed by that of Calcutta just downriver. Chandannagar was restored to the French in 1763, but retaken by the British in 1794 in the Napoleonic Wars. The city was returned to France in 1816, along with a 3 sq mi (7.8 km2) enclave of surrounding territory. It was governed as part of French India until 1950, under the political control of the governor-general in Pondicherry.
ground_truth: until 1845, when their alliance with a defeated France led to the colony being ceded to the British East Indian company.