Cashiers checks do not have any expiration date so they're good for as long as you have the cashiers check and for as long as the bank is in business.
However some banks and cashiers checks do have a time limit placed on them that guarantees the funds are available.
It's best to cash or deposit a cashiers check as soon as you get it or as soon as possible to avoid losing it.