I find the best way is to leave bedroom curtains/door/window shut during day, then open the window once it starts to cool down outside, but leave door closed.
This way you dont fill the room with warm air from outside/rest of house and it tends to be nice and cool by the time you go to bed after you open the window at about 10
