You can apply for your ILR after you've completed your 24 months of stay (start date since you arrived in UK with your spouse visa).
yes you need to have been in the uk at least 2yrs -(upto 28days ) and have passed the life in uk test to apply for ILR under current immigration laws, which could change soon