title: Want to convert String data type into Date data type in pentaho
body: <p>I have a string which has a date in this format: <code>n_date=2014-04-20</code></p>
  
  <p>I want to convert it into date data type</p>
  
  <pre><code>var Final_date = str2date(n_date,"yyyy-MM-dd");
  </code></pre>
  
  <p>but I get an error.</p>
  
  <p>I'm do this in <code>pentaho</code></p>