title: OpenCSV, how to write into csv with custom processing?
body: <p>I am trying to write List of POJO objects into a csv. I use opencsv and the code is very minimal:</p>
  <pre><code> StatefulBeanToCsv sbc = new StatefulBeanToCsvBuilder(writer)
                      .withSeparator(CSVWriter.DEFAULT_SEPARATOR)
                      .build();
  </code></pre>
  <p>I use Custom converters while reading, can I do something similar for write also?
  For e.g.:</p>
  <ol>
  <li>if field is of type List, it gets written as &quot;[a,b]&quot;.  But I
  would like to do something like this: &quot;a,b&quot;.</li>
  <li>A field is of type LocalDataTime, I would like to write it in the format &quot;MM/dd/yyyy&quot;
  and discard time completely in the output csv.</li>
  </ol>
  <p>I want output to be something like this:</p>
  <pre><code>date of issue,items
  &quot;02/22/2020&quot;,&quot;a,b&quot;
  </code></pre>
  <p>Instead of:</p>
  <pre><code>date of issue,items
  &quot;2020-02-22T00:00&quot;,&quot;[a,b]&quot;
  </code></pre>
  <p>Thank you so much, appreciate any help
  :)</p>