Change format date in Java does not work correctly
<pre><code>public class CronoProgrammaForm {
    ...
    java.util.Date datPreIniLav;

    //getter and setter
    ...
}
</code></pre>

<p>Main</p>

<pre><code> SimpleDateFormat df = new SimpleDateFormat("dd/MM/yyyy");

 cronoProgrammaForm.setDatPreIniLav(df.parse(df.format(cronoProgrammaForm.getDatPreIniLav())));
</code></pre>

<p><em>cronoProgrammaForm.getDatPreIniLav()</em> is 2015-10-14 <em>df.format(cronoProgrammaForm.getDatPreIniLav())</em> is 14/10/2015</p>

<p>Why</p>

<p><em>sdf.parse(df.format(cronoProgrammaForm.getDatPreIniLav()))</em> </p>

<p>is Wed Oct 14 00:00:00 CEST 2015?! I would it was 14/10/2015</p>