title: Parsing a date string to get the year
body: <p>I have a string variable that stores a date like "05/11/2010".</p>
  
  <p>How can I parse the string to get only the year?</p>
  
  <p>So I will have another year variable like <code>year = 2010</code>.</p>