Its not the aircraft so much as the crews. Swordfish from 1941 were being fitted with ASV radar that did enhance their ability to find things in conditions of poor visibility, however the attacks themselves generally until quite late in the war were done visually with the aid of flares.
ASV will help but its the training and operational techniques that makes the difference. Not all CAGs were trained for Night Operations, but in 1940, Eagle, Illustrious and Ark Royal all had night capable crews.
Illustrious delivered the taranto attack at night, and the attack on Bismarck were mostly in the half light of twight and with low cloud cover and poor visibility to boot. Somerville planned to use his Swordfish and Albacores in Night counterstrikes during the Japanese Indian Ocean raids