Lord Nelson's battle of Copenhagen was on April 2, 1801. Sure enough, the song is found in the Evans broadside collection at the Bodleian libraries (Curzon b.24(99)), dated between 1801-1805 e.g. before Nelson's death.
C.H. Firth reprints this song from Ashton's Real Sailor Songs, p. 16. (1891).