java SimpleDateFormat? : <pre><code>public static void main(String[] args) {
        Date now = new Date();

        String dateString = now.toString();
        System.out.println(" 1. " + dateString);

        SimpleDateFormat format = new SimpleDateFormat("EEE MMM dd HH:mm:ss zzz yyyy");

        try {
            Date parsed = format.parse(dateString);
            System.out.println(" 2. " + parsed.toString());
        } catch (ParseException pe) {
            System.out.println("ERROR: Cannot parse \"" + dateString + "\"");
        }

        System.out.println(" 3. " + format.format(now));
    }
</code></pre>

<p>print in console:</p>

<pre><code> 1. Thu Feb 23 17:14:51 CET 2017
ERROR: Cannot parse "Thu Feb 23 17:14:51 CET 2017"
 3. jeu. févr. 23 05:14:51 CET 2017
</code></pre>

<p>instead of:</p>

<pre><code> 1. Thu Feb 23 17:14:51 CET 2017
 2. Thu Feb 23 17:14:51 CET 2017
 3. jeu. févr. 23 05:14:51 CET 2017
</code></pre>
