title: Selenium split date string working example?
body: <p>I'm trying to split a date string (04.05.2012) into 3 sub-strings for later string manipulation. When I run the below code in a regular javascript editor (in Eclipse), it works. In other words, dString[2] correctly returns 2012 . When I run the below code in Selenium IDE though, it splits the date string into 9 chars, instead of the desired 3 sub-strings.
  What changes do I need to make to the below code? Or is it a bug with Selenium's implementation...?</p>
  
  <p>Thanks All,
  -Sam</p>
  
  <pre><code>&lt;tr&gt;
      &lt;td&gt;store&lt;/td&gt;
      &lt;td&gt;04.05.2012&lt;/td&gt;
      &lt;td&gt;flight_date&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
      &lt;td&gt;storeEval&lt;/td&gt;
      &lt;td&gt;dList = '${flight_date}'.split('.'); &lt;/td&gt;
      &lt;td&gt;dsplit1 &lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
      &lt;td&gt;echo&lt;/td&gt;
      &lt;td&gt;${dsplit1}&lt;/td&gt;
      &lt;td&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
      &lt;td&gt;storeEval&lt;/td&gt;
      &lt;td&gt;day = '${dsplit1}'[9]&lt;/td&gt;
      &lt;td&gt;dsplit2&lt;/td&gt;
  &lt;/tr&gt;
  &lt;!--this returns 2--&gt;
  &lt;tr&gt;
      &lt;td&gt;echo&lt;/td&gt;
      &lt;td&gt;${dsplit2}&lt;/td&gt;
      &lt;td&gt;&lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>