title: Convert date to EEE, d MMM YYYY HH:mm:ss z format
body: <p>I want to format date to string in "EEE, d MMM YYYY HH:mm:ss z" but not able to receive desired output.</p>
  
  <p>I referred this <a href="http://www.java2s.com/Tutorials/Java/Java_Format/0030__Java_Date_Format_Symbol.htm" rel="nofollow noreferrer">tutorial</a>  however it not working as per expectation , see code below :</p>
  
  <pre><code>import java.util.Date;
  import java.text.SimpleDateFormat;
  import java.util.Locale;
  public class MyClass {
      public static void main(String args[]) {
  
          Date date = new Date();
          SimpleDateFormat formatter = new SimpleDateFormat("EEE, d MMM YYYY HH:mm:ss z");
          //tried this as well  new SimpleDateFormat("EEE',' d MMM YYYY HH:mm:ss z",Locale.US);
          String strDate = date.toString();
          System.out.println(strDate);// Tue Sep 19 10:31:40 GMT 2017
          // i want this --&gt; Tue, Sep 19 2017 10:31:40 GMT 
  
      }
  }
  </code></pre>
  
  <p>Please find <a href="https://www.jdoodle.com/a/7A8" rel="nofollow noreferrer">jdoodle link</a> for working example 
  Appreciate your help !</p>