The first is massively overexposed (assuming you are trying to get an image of the lit side and not the unlit side). The second is better, but still very slightly overexposed. What you have to remember is that the lit part of the moon is in full sunlight and you should expose accordingly. A good starting place would be to put your camera in manual mode, set ISO to 100, aperture to f/8 and shutter speed to 1/125s.
If the resulting image is still a bit bright, either increase the shutter speed, or close the aperture down to f/11. If it is too dark, use a slightly slower speed or open the aperture by a stop.