Date and Time Formatting error : <p><strong>I'm having the date  "2016-08-05 14:46:53 +05:30" and the
date and time format which i have used is "yyyy-MM-DD HH:mm:ss +05:30"</strong>
the problem is that when i'm parsing this date i get the output <strong>"Tue Jan 05 14:46:53 GMT+05:30 2016"</strong> i don't get what is the problem.
The code which i'm using is posted below.</p>

<pre><code>public class DateFormater {
private static String DATE_TIME_FORMAT = "yyyy-MM-DD HH:mm:ss +05:30";
private static String TAG = DateFormater.class.getSimpleName();
public static Date getDate(String s) {
    //Input s = 2016-08-05 14:46:53 +05:30
    Date date = null;
    try {
        SimpleDateFormat dateFormat=new SimpleDateFormat(DATE_TIME_FORMAT);
        date=dateFormat.parse(s);
    } catch (ParseException e) {
        e.printStackTrace();
    }
    return date;
}
public static String getCurrentDateString(Date date) {
    DateFormat dateFormat=SimpleDateFormat.getDateInstance(DateFormat.MEDIUM);
    Log.i(TAG, "getCurrentDateString: "+dateFormat.format(date));
    return dateFormat.format(date);
}
public static String getCurrentTimeString(Date date) {
    DateFormat dateFormat=SimpleDateFormat.getTimeInstance(DateFormat.SHORT);
    return dateFormat.format(date);//Tue Jan 05 14:46:53 GMT+05:30 2016
}}
</code></pre>
