In case of JDMs, for some of the makes and models, online data is available. You enter the Chassis No. And it gives many details, including month and year of production, however, I think, no such system exists here for locally assembled cars, either new or used.