How can I parse this Date in  Java?
<p>I want to parse a date into my format like <code>02:09 AM 25/09/2012</code> but I can't. I used this code.</p>

<pre><code>SimpleDateFormat sdf1 = new SimpleDateFormat("MMMM, DD yyyy HH:mm:ss Z");

//September, 25 2012 02:09:42 +0000
Date date = sdf1.parse(String.valueOf(PUNCH_TIME)); 

SimpleDateFormat sdf2 = new SimpleDateFormat("HH':'mm a 'on' DD'/'MMMM'/'yyyy");

SimpleDateFormat sdf2 = new SimpleDateFormat("MM");
String timeformat=sdf2.format(date);
txtHomePunchStatus.setText("You have Punched In at "+timeformat);
</code></pre>

<p>and I got <code>You have punched IN at 7:52 AM on 25/01/2012</code>.</p>
