SimpleDateFormat and Date object : <p>In my android app I retrieve from an api the current day as.</p>

<pre><code>   long dateTime = innerJSON.getLong("dt");

   Date weekDay = new Date(dateTime * 1000L);

   SimpleDateFormat outFormat = new  
   SimpleDateFormat("EEEE");
   String day = outFormat.format(weekDay);
</code></pre>

<p>And I get the current day ie Monday. </p>

<p>For the date I use the same Date object but with a different SimpleDateFormat object. </p>

<pre><code>  SimpleDateFormat outFormat1 = new SimpleDateFormat("dd-M-yyyy");
  String date = outFormat1.format(weekDay);
</code></pre>

<p>And that gives me,</p>

<pre><code>  28-5-2016
</code></pre>

<p>which is fine. However, I want the date to have a format of</p>

<pre><code>  28 May
</code></pre>

<p>Any ideas on that? I checked the official orarcle's <a href="https://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html" rel="nofollow">site</a>,but I can't find a solution.</p>

<p>Thanks,</p>

<p>Theo.</p>
