The Moon has a cycle of 14 days of daylight (14 days of continuous sunlight) and 14 days of night (14 days of continuous dark and cold).
All the Apollo lunar missions landed when each mission site was in full daylight. The astronauts did not experience night on the Moon.
In late 1967, the Surveyor 5 Moon lander took 20 000 photos of its landing site over 4 Lunar days. None were taken during the night.
Surveyor 5 was, however, the most successful of the series so far. The lander returned 18,006 photos before lunar night descended on Sept. 24, 1967. Controllers successfully commanded the vehicle to take another 1,000 photographs during the second lunar day between Oct. 15 and Oct. 24, 1967, and the fourth lunar day in December. In total, 20,018 pictures were transmitted.
Similarly in 1968, Surveyor 7 only took photos during the day. After the first lunar day, where it took 20 000 photos,
Operation of the spacecraft was terminated 80 hours after sunset. The spacecraft was reactivated for the second lunar day on February 12, 1968, and operated until February 21, 1968.