A court that imposes a sentence for conviction of a misdemeanor upon a person who is less than eighteen (18) years of age may enter an order requiring that the convicted person serve the sentence in a juvenile detention facility established under IC 31-31-8 (or IC 31-6-9-5 before its repeal). However, before an order may be entered under this section, the court must secure the written approval of the judge of the juvenile court allowing the detention of the person in the juvenile detention facility.
IC 35-38-1-22