The posts below are correct - 2 years from the discharge date unless there was a home foreclosed on after the fact. Then it will be 2 years from the actual date of foreclosure by the lender.
Good luck with your new home purhcase.
There are many great lenders who can help guide you through the process and prepare you to purchase too.
Is there any special reason you are looking to use a CalVet loan instead of just a regular VA loan? Are you looking to finance rehab/improvements to the property you are buying? (CalVet has that feature whereas regular VA loans do not unless it's for energy efficient improvements). With CalVet rates are higher (about 1% higher right now), fees are higher, the process is a little longer, and there are a lot of "catches" when using the program - must remain living in the home, CalVet actually owns the home/they hold title, and can be subject to a "recapture" tax.
Please see my blog for a list of tips and advice on getting a mortgage