title: how to create new line between dateformat
body: <p>i m creating date format like this :</p>
  
  <pre><code>SimpleDateFormat sdf =new SimpleDateFormat("MMM d, EEE, h:mm a");
  </code></pre>
  
  <p>i need a new line between date, month and time something like this </p>
  
  <pre><code>thus ,sep 6
  4:25pm
  </code></pre>
  
  <p>so i made the following changes :</p>
  
  <pre><code>SimpleDateFormat sdf =new SimpleDateFormat("MMM d, EEE,"+"\n"+" h:mm a");
  </code></pre>
  
  <p>it did not give me anything just it created it in one line like this :</p>
  
  <pre><code>thus ,sep 6 4:25pm
  </code></pre>
  
  <p>so i took format object like this </p>
  
  <pre><code>SimpleDateFormat sdf =new SimpleDateFormat("MMM d, EEE,");
  SimpleDateFormat sdf1 =new SimpleDateFormat(" h:mm a");
  </code></pre>
  
  <p>and did  this :</p>
  
  <pre><code>sdf.format(calendar.getTime())+"\n"+sdf1.format(calendar.getTime())
  </code></pre>
  
  <p>but it again gives the same result</p>
  
  <pre><code>thus ,sep 6 4:25pm
  </code></pre>
  
  <p><strong>calendar</strong> is a Calendar object.Any help will be appreciated!!</p>