Title: Abolition of Corporal Punishment Act, 1997
Content:  The Abolition of Corporal Punishment Act, 1997 (Act No. 33 of 1997) is an act of the Parliament of South Africa that abolished judicial corporal punishment. It followed the Constitutional Court's 1995 decision in the case of S v Williams and Others that caning of juveniles was unconstitutional. Although the ruling in S v Williams was limited to the corporal punishment of males under the age of 21, Justice Langa mentioned in dicta that there was a consensus that corporal punishment of adults was also unconstitutional. The act contains two substantive sections. The first provides that "any law which authorises corporal punishment by a court of law, including a court of traditional leaders," is repealed to the extent that it authorises such a punishment. The second makes specific textual amendments various statutes, including the Black Administration Act, the Magistrates' Courts Act and the Criminal Procedure Act, to remove references to corporal punishment.
Title: Child corporal punishment laws
Content:  Common-law precedent in South Africa held that a parent may "inflict moderate and reasonable chastisement" on a child. The judicial corporal punishment of juveniles was forbidden by the Constitutional Court in the 1995 case S v Williams. Corporal punishment in schools was banned by the South African Schools Act, 1996, and the application of that ban to private religious schools was upheld by the Constitutional Court in the case of Christian Education South Africa v Minister of Education. In 2013 the Department of Social Development prepared legislation to prohibit corporal punishment in the home. In 2017 a decision by the Gauteng High Court held that corporal punishment in the home was unlawful, and that decision was confirmed for the whole country by the Constitutional Court in the 2019 case Freedom of Religion South Africa v Minister of Justice and Constitutional Development.
Title: School corporal punishment
Content:  The use of corporal punishment in schools was prohibited by the South African Schools Act, 1996. According to section 10 of the act: "(1) No person may administer corporal punishment at a school to a learner. (2) Any person who contravenes subsection (1) is guilty of an offence and liable on conviction to a sentence which could be imposed for assault." In the case of Christian Education South Africa v Minister of Education the Constitutional Court rejected a claim that the constitutional right to religious freedom entitles private Christian schools to impose corporal punishment.
Title: Capital punishment in South Africa
Content:  Capital punishment in South Africa was abolished on 6 June 1995 by the ruling of the Constitutional Court in the case of S v Makwanyane, following a five-year and four-month moratorium since February 1990.
Title: School corporal punishment
Content:  Corporal punishment in schools was banned in 1845 and became a criminal offence in 1974 (Aggravated Assault on Minors under Authority).
Title: S v Williams (1995)
Content:  S v Williams and Others is a decision of the Constitutional Court of South Africa in which the court ruled that judicial corporal punishment of juveniles is unconstitutional. The decision was taken with respect to five different cases in which six juveniles were convicted by different magistrates and sentenced to receive a "moderate correction" of a number of strokes with a light cane. The unanimous judgment, handed down on 9 June 1995, found the imposition of corporal punishment to be incompatible with the Interim Constitution of South Africa because it violates the right to human dignity and the protection against cruel, inhuman or degrading punishment. The case did not deal with judicial corporal punishment of adults, but in argument before the court all parties agreed that it was unconstitutional. In 1997 Parliament passed the Abolition of Corporal Punishment Act, which repealed all laws allowing for judicial corporal punishment.
Title: School corporal punishment
Content:  Corporal punishment in public schools was banned in 1914, but remained de facto commonplace until 1984, when a law banning all corporal punishment of minors, whether in schools or in the home, was introduced.
Title: School corporal punishment
Content:  Banned in 1813, corporal punishment was re-legalised in 1815 and physical punishments lasted legally until 1884, when their usage was banned (with the exception of court ordered punishments). Punishments include hitting with rebenques, slappings in the face. Corporal punishment of children has been prohibited unilaterally within the country since 2016.
Title: Child corporal punishment laws
Content:  School corporal punishment was banned in 1914. Parents' right to use corporal punishment of their children was outlawed in 1969 when the section in the constitution of assault in the Penal Code, stating that a "petty assault" was not punishable if committed by parents or others who exercise their right to chastise a child, was removed. In 1983, corporal punishment of children was explicitly banned.
Title: School corporal punishment
Content:  All corporal punishment, both in school and in the home, has been banned since 2018.

Question: when was corporal punishment banned in south africa?
Answer: 1997.