DATE in string

Let say I have a string which is 2011-2-3 , how do I convert it into days in 365 in 2011? How do I use find function and substr function in this case?
Topic archived. No new replies allowed.