Despite any other provision of this Act, if:
(a) a youth has been in custody after his or her arrest for an offence; and
(b) the youth is convicted of that offence and sentenced to detention or imprisonment,
the Court may order that the detention or imprisonment is taken to have commenced on the day on which the youth was arrested or on any other day between that day and the day on which the Court passes sentence.