Date object not returning correct time value
<p>I am using below code to get the current time in specific format and then want to print the time stamp.</p>

<pre><code>    SimpleDateFormat dateFormat = new SimpleDateFormat("MM-dd hh:mm:ss.ms");
    String formattedDate = dateFormat.format(new Date());
    Date curDate = null;
    try {
        curDate = dateFormat.parse(formattedDate);
    } catch (ParseException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
    }
    Log.i(Config.TAG,"curDate...... "+curDate);
</code></pre>

<p>but when I see the Logcat output "curDate....." is showing "Mon Jul 13 04:11:51 EDT 1970"
but in the above statement minutes are wrong.
but In my android device, time is showing as "04:40 AM".</p>

<p>I am unable to figure out why the above method capturing "29" minutes delay.??</p>

<p>Pl. let me know is that the proper way to do this.
let me know if I missed something.</p>
