Night time on the moon lasts for about 2 weeks so if they send a solar powered probe it must go onto sleep mode for 2 weeks at a time unless it can store extra power during the day time.
The recent Charndrayaan 3 probe was forced to go into sleep mode shortly after it landed because of the long moon night.