How to convert this milliseconds into time (hh:mm a)?
<p>I have milliseconds like "1325085788"  i  want to convert it on hh:mm a . i know this but return me time  01:34 PM instead of  08:53 PM.Whats problem ? </p>

<p>My code is :: </p>

<pre><code>String created_on = "1325085788";
        String pattern = "hh:mm a";
        SimpleDateFormat dateFormat = new SimpleDateFormat(pattern);

        Date date = new Date(Long.parseLong(created_on));

        String yourFormatedDate = dateFormat.format(date);

        System.out.println("--------&gt; " + yourFormatedDate);
</code></pre>

<p><strong>no timezone issue because it give me current time (in india) in iphone app</strong></p>
