title: JMeter BeanShell PostProcessor to extract date until T (time zone)
body: <p>I am extracting Date from json in the following format: 1980-09-08T00:00:00Z. To reuse this I need only: 1980-09-08. So I trie dto use BeanShell postprocessor:</p>
  
  <pre><code>String varPurchaseDate = ${PurchaseDate};
  log.info(varPurchaseDate);
  String[] varDate = line.split("T");
  log.info(varDate[0]);
  </code></pre>
  
  <p>I am getting error</p>
  
  <pre><code>2017/11/01 16:41:30 ERROR - jmeter.util.BeanShellInterpreter: Error invoking bsh method: eval   In file: inline evaluation of: ``String varPurchaseDate = 1980-09-08T00:00:00Z; log.info(varPurchaseDate);'' Encountered "9" at line 1, column 32.
  </code></pre>
  
  <p>Please help. Also how will I be able to use the parameter as input, as varDate[0]?</p>