Hi,
Your process is not clear. Could you please explain in detail about the business process and where you are maintaining the gate pass validity date in PO!
However, if you need a validation in PO as mentioned, you may go for development with BAdI: ME_PROCESS_PO_CUST
Regards,