Assuming it forecloses on the 4th as scheduled, you will have plenty of time to move out (30 days +).
Since you will be the tenant at the time of foreclosure, you may want to consider requesting "cash for keys" from the bank. This type of agreement allows you a cash move out allowance and time in the property in exchange for your cooperation in leaving the place in clean condition with no trash or personal belongings left behind.
There are additional rights you have as a tenant, however,since you are moving out April 6th anyways,it may not be worth discussing.
Good luck and buy as soon as you can!
Riverside Real Estate Agent