Army Reservist moved to California from Colorado

I moved to California from Colorado in April. I am in the Army Reserve and work on a military base in California both as a Reservist and a full time civilian employee. Do I have to do a Colorado and California tax return? Why? How to differentiate between nonresident and part-year resident on either state?