Can the company check the employee's violation of discipline two months ago?

Yes, but the company is not allowed to inquire about employees' criminal record information at will.

If it is really necessary to inquire about illegal and criminal information, it shall provide corresponding written materials (mainly for inquiry) according to the requirements of the information management organ, and can inquire about relevant criminal records after examination and approval.

According to the Regulations on the Management and Inquiry of Criminal Record Information, when providing criminal information inquiry services to the society, the criminal record information management organ shall strictly follow the qualifications and conditions for further study, enlistment and employment as stipulated by laws and regulations. If a staff member fails to provide information as required, or intentionally provides false or forged information, if the circumstances are serious or cause serious consequences, the responsibility of the relevant personnel shall be investigated according to law.