Can't manage to sort a file and display time & date on a LCD screen.

It works half of the time. So, could you tell me how exactly I should connect the SD card? You told me to set pin 10 as an OUTPUT, I did it, but what about pin 4?