How to demat old shares

Is there any time limit to convert old shares into demat form?,