title: Getting error while parsing string value by SimpleDateFormat .parse()
body: <pre><code>import java.text.SimpleDateFormat;
  import java.util.Date;
  
  public class DateExample {
  
  public static SimpleDateFormat TIMEZONE_DATE_FORMAT = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss z");
  
  private static final SimpleDateFormat[] DATE_FORMATS = 
  {
      new SimpleDateFormat("MM/dd/yyyy hh:mm:ss aa"),
      new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS"),
      new SimpleDateFormat("EEE MMM dd HH:mm:ss zzz yyyy"),
      TIMEZONE_DATE_FORMAT,
  };
  
  public static void main(String[] args){
  
      for(SimpleDateFormat format : DATE_FORMATS){
  
          try {
              Date date = format.parse("1377154948450");
              System.out.println("Date: "+ date.toString());
  
          } catch (Exception e) {e.printStackTrace();}
      }
  }
  
  }
  </code></pre>
  
  <p>Now the String value in parse method is what am getting from a method call and I can't change that. While running this code am getting the Exception</p>
  
  <pre><code>java.text.ParseException: Unparseable date: "1377154948450"
      at java.text.DateFormat.parse(DateFormat.java:337)
  </code></pre>