Va. Code Ann. § 18.2-67.5:3
B. The provisions of subsection A shall apply to convictions for:
C. For purposes of this section, prior convictions shall include (i) adult convictions for felonies under the laws of any state or the United States that are substantially similar to those listed in subsection B and (ii) findings of not innocent, adjudications or convictions in the case of a juvenile if the juvenile offense is substantially similar to those listed in subsection B, the offense would be a felony if committed by an adult in the Commonwealth and the offense was committed less than twenty years before the second offense.
The Commonwealth shall notify the defendant in the indictment, information, or warrant, at least thirty days prior to trial, of its intention to seek punishment pursuant to this section.
1995, c. 834; 2007, c. 506.