As with reference to the Genesis when did the God create man? And also the difference between two verses below
Genesis 1:27 So God created mankind in his own image, in the image of God he created them; male and female he created them.
Genesis 2:7 Then the Lord God formed a man[c] from the dust of the ground and breathed into his nostrils the breath of life, and the man became a living being.
Also wanted to know why specifically two times it has been mentioned two times that god created male female in his image and then formed man from the dust.