Code of Virginia
Chapter 10 - Commitment of Aliens
§ 53.1-220.2. Transfer of certain incarcerated persons to Immigration and Customs Enforcement

The Director, sheriff, or other official in charge of the facility in which an alien is incarcerated may, upon receipt of a detainer from U.S. Immigration and Customs Enforcement, transfer custody of the alien to U.S. Immigration and Customs Enforcement no more than five days prior to the date that he would otherwise be released from custody. Upon transfer of custody, notwithstanding any other provision of law, the alien shall receive credit for the number of days remaining before he would otherwise have been released.
2015, cc. 102, 211.