Rice water

How do you use rice water? Can I spray it into my dry hair and go about my day? How long is it good for before I have to toss it out?