How can I extract date from since time component : <p>I have to extract date in the format MM-dd-yyyy in java from the since time value. Since time is the time at which the doucment is created. For example, if since time is <strong>1452413972759</strong>, date would be  "<strong>Sun, 10 Jan 2016 08:19:32 GMT</strong>" (Calculated from <a href="http://www.epochconverter.com/" rel="nofollow">http://www.epochconverter.com/</a>) . From this, I could get date in desired format but I am unable to code for the first step i.e., converting since time to date. Can someone help me?</p>

<p>I tried </p>

<pre><code>DateFormat df = new SimpleDateFormat("MM/dd/yyyy");
        java.util.Date date = df.parse("1452320105343");
        String DATE_FORMAT = "MM/dd/yyyy";
        SimpleDateFormat sdf = new SimpleDateFormat(DATE_FORMAT);
        System.out.println("Today is " + sdf.format(date));
</code></pre>

<p>But it gives parse exception.</p>
