In regard to LGBT rights, Denmark was the first country in the world to grant legal recognition to same-sex unions in the form of registered partnerships in 1989. On 7 June 2012, the law was replaced by a new same-sex marriage law, which came into effect on 15 June 2012. Greenland and the Faroe Islands legalized same-sex marriage in April 2016, and in July 2017 respectively. In January 2016, a resolution was implemented by the Danish parliament which prevented transgender being classified as a mental health condition. In doing so, Denmark became the first country in Europe to go against the World Health Organisation (WHO) standards, which classified transgender identity as being a mental health issue until June 2018.