Upvote:1
It should be still valid until the expiration. So you can visit for two months if the expiration of your ESTA happens after that.
Caveats for traveling to Iran if you have a European passport. It might cancel your ESTA.
Upvote:2
You can check the status of your ESTA here by using just your passport number and personal details if you do not have your original application number.
An ESTA lasts for 2 years from application/confirmation (usually the same day) or until the expiration of your passport, whichever soonest.