Robert II of France ( March 27 , 972 - July 20 , 1031 ) was born in Orleans , France . Robert II ( 27 March 972 â `` 20 July 1031 ) , called the Pious or the Wise , was King of France from 996 until his death .