7:9-3. Credit for Confinement Pending Sentence
The defendant shall receive credit on the term of custodial sentence for any time served in custody, either in jail or in a state hospital, between the arrest and the imposition of a sentence.http://njlaws.com/7-9-3.html?id=5148&a=