The British Parliament passed the Indian Independence Act in July 1947 which created two independent nations India and Pakistan at midnight on 1415 August 1947

What is the correctly punctuated version of this sentence?
The British Parliament passed the Indian Independence Act in July 1947 which created two independent nations, India and Pakistan, at midnight on 14-15 August 1947.