answered on 06/06/2018
It depends on your specific employment contract. Most importantly, you should check if your contract provides for any remedies or damages if you were to tender resignation before 30th June. If not, then tendering resignation may mean the act of giving notice, and therefore you may be obligated under the contract to only give your 2 months' notice on 30th June, with your last day being 31st August. If this is the case, then you may have to work until 31st August or pay your employer an additional 1 month's salary in lieu of notice to terminate the contract on 31st July before the notice period has ended, as you have described.