JAVA Date string without symbols : <p>I'm formatting <strong>Date</strong> to <strong>String</strong> without symbols <strong>:,/,-</strong> using <strong>SimpleDateFormat</strong>, but it formats it strangely.</p>

<p>Here's my code :</p>

<pre><code>public static String getFormatedDate(Date date, String format) {
    SimpleDateFormat simpleDateFormat = new SimpleDateFormat(format);
    return simpleDateFormat.format(date);
}
</code></pre>

<p>And I call it like this :</p>

<pre><code>DateUtil.getFormatedDate(new Date(), "DDMMYYYYHHMMSS")
</code></pre>

<p>Return of the call is incorrect <strong>2540920170909379</strong> it should look like this <strong>11092017093405</strong> = <strong>11/09/2017 09:34:05</strong></p>
