title: Error when doing string.substring on vb.net
body: <p>I am using vb.net 2010, I want to extract the last 2 digits of the current year.<br>
  For example, 2013 should return 13.<br>
  I am using the following code:  </p>
  
  <pre><code>Dim sid_1 As String = Year(Now) 'or Year(Now).ToString
  sid_1 = sid_1.Substring(sid_1.Length, 2)  'highlighted error
  </code></pre>
  
  <p>but it returns an error:  </p>
  
  <pre><code>ArgumentOutOfRangeException was unhandled  
  Index and length must refer to a location with the string.  
  Parameter name: length
  </code></pre>