Otto, I checked my trusty copy of WhenTheSteamRailroadsElectrified by William D. Middleton last evening.

The dates you are looking for: N&W ended electrification in the summer of 1950 (no specific date given).

The Virginian portion of the N&W (N&W and Virginian merged at the end of 1959) ended electric operations on June 30, 1962.

A little more information: The N&W was electrified between Bluefield and Iaeger, WV in 1912, mainly to work the Elkhorn grade. The N&W power plant was in Bluestone, 11 miles west of Bluefield. The N&W upgraded the line with the lessening of grades and double tracking, opening the reroute in 1950, negating any further use of electrification on the N&W.

The Virginian portion was 134 miles long, electrified in 1923, running from Mullens, WV to Roanoke, VA. The VGN power plant was in Narrows, VA on the New River. As mentioned earlier the N&W and the VGN merged at the end of 1959, with the parallel lines making better use of ruling grades for loads headed to the tidewater ports, ending the need for the VGN electrified portion. Some of the newer electric locomotives were sold to the New Haven, eventually serving PennCentral and Conrail.

That makes sense, the VGN rectifiers were on the market for $20,000 a piece, a bargain. NH was phasing out their electric operations when they realized there was little cost savings. they bought the VGN units, and re-energized the freight-only Bay Ridge branch, where those units ruled until Penn Central turned off the juice for good in 1969.