Cal. Welf. & Inst. Code § 604
(a) Whenever a case is before any court upon an accusatory pleading and it is suggested or appears to the judge before whom the person is brought that the person charged was, at the date the offense is alleged to have been committed, under the age of 18 years, the judge shall immediately suspend all proceedings against the person on the charge. The judge shall examine into the age of the person, and if, from the examination, it appears to the judge’s satisfaction that the person was at the date the offense is alleged to have been committed under the age of 18 years, the judge shall immediately certify all of the following to the juvenile court of the county:
(3) That proceedings have been suspended against the person on the charge by reason of the person’s age, with the date of the suspension.
The judge shall attach a copy of the accusatory pleading to the certification.