Generally speaking, criminals sentenced to two years of fixed-term imprisonment cannot serve their sentences in detention centers. However, if a criminal sentenced to fixed-term imprisonment of two years falls under the circumstance that the remaining term of his sentence is less than three months before he is handed over for execution of his sentence, he may serve his sentence in a detention house.
Legal basis
Article 46 of the Criminal Law of the People's Republic of China [Execution of fixed-term imprisonment and life imprisonment] A criminal sentenced to fixed-term imprisonment or life imprisonment shall be executed in prison or other places of execution; Anyone who has the ability to work should participate in labor, receive education and reform.