<Table> Hagia Sophia Ayasofya (Turkish) Αγία Σοφία (Greek) Sancta Sophia (Latin) <Tr> <Td_colspan="2"> A view of Hagia Sophia, Istanbul </Td> </Tr> <Tr> <Td_colspan="2"> Location in Istanbul </Td> </Tr> <Tr> <Th> Coordinates </Th> <Td> 41 ° 00 ′ 31" N 28 ° 58 ′ 48" E ﻿ / ﻿ 41.0085 ° N 28.9799 ° E ﻿ / 41.0085; 28.9799 Coordinates: 41 ° 00 ′ 31" N 28 ° 58 ′ 48" E ﻿ / ﻿ 41.0085 ° N 28.9799 ° E ﻿ / 41.0085; 28.9799 </Td> </Tr> <Tr> <Th> Location </Th> <Td> Istanbul (historically Constantinople), Turkey </Td> </Tr> <Tr> <Th> Designer </Th> <Td> Isidore of Miletus Anthemius of Tralles </Td> </Tr> <Tr> <Th> Type </Th> <Td> <Ul> <Li> Christian Cathedral (537--1054) </Li> <Li> Greek Orthodox Cathedral (1054--1204) </Li> <Li> Roman Catholic Cathedral (1204--1261) </Li> <Li> Greek Orthodox Cathedral (1261--1453) </Li> <Li> Imperial Mosque (1453--1931) </Li> <Li> Museum (1935--present) </Li> </Ul> </Td> </Tr> <Tr> <Th> Material </Th> <Td> Ashlar, brick </Td> </Tr> <Tr> <Th> Length </Th> <Td> 82 m (269 ft) </Td> </Tr> <Tr> <Th> Width </Th> <Td> 73 m (240 ft) </Td> </Tr> <Tr> <Th> Height </Th> <Td> 55 m (180 ft) </Td> </Tr> <Tr> <Th> Beginning date </Th> <Td> 532 </Td> </Tr> <Tr> <Th> Completion date </Th> <Td> 537; 1480 years ago (537) </Td> </Tr> <Tr> <Td_colspan="2"> </Td> </Tr> <Tr> <Th_colspan="2"> UNESCO World Heritage Site </Th> </Tr> <Tr> <Th> Part of </Th> <Td> Historic Areas of Istanbul </Td> </Tr> <Tr> <Th> Criteria </Th> <Td> Cultural: i, ii, iii, iv </Td> </Tr> <Tr> <Th> Reference </Th> <Td> 356 </Td> </Tr> <Tr> <Th> Inscription </Th> <Td> 1985 (9th Session) </Td> </Tr> <Tr> <Td_colspan="2"> </Td> </Tr> </Table> <Tr> <Td_colspan="2"> A view of Hagia Sophia, Istanbul </Td> </Tr>

When was the hagia sophia turned into a mosque
find me the text answering this question