title: Java Date Parsing As Per Format
body: <p>I need to parse the date as per format but it didn't work very well.</p>
  
  <pre><code>   public class Main {
          public static void main(String[] args) throws ParseException {
                  DateFormat formatter = new SimpleDateFormat("dd/MM/yyyy");
                  String dateInString = "07/06/2013";
                  Date date = formatter.parse(dateInString);
                  System.out.println(date);
              }
          }
  </code></pre>
  
  <p>i need date object in 07/06/2013 format even if date was in any format. but parse method always return in Fri Jun 07 00:00:00 PKT 2013.</p>