Getting a Date with "ShortenedMonth/dd" format <p>Is there a way I can get a date by the format "MM/dd" but instead of the month being an <code>int</code>, it is a shortened <code>string</code> like "Jan 30"?</p> <p>Currently I did this with Java by a simple <code>Switch Case</code>, but I want to know if this is already contained in a <code>DateFormat</code> or something similar.</p> <p>Anyway I leave here my current code. I used <code>R.string</code> because my application has multi-language support.</p> <pre><code>public void setShortMonth(){ final Calendar calendar = Calendar.getInstance(); int Month = calendar.get(Calendar.MONTH); String ShortMonth = " "; switch (Month){ case 0: ShortMonth = getString(R.string.Jan); break; case 1: ShortMonth = getString(R.string.Fev); break; case 2: ShortMonth = getString(R.string.Mar); break; case 3: ShortMonth = getString(R.string.Apr); break; case 4: ShortMonth = getString(R.string.May); break; case 5: ShortMonth = getString(R.string.Jun); break; case 6: ShortMonth = getString(R.string.Jul); break; case 7: ShortMonth = getString(R.string.Aug); break; case 8: ShortMonth = getString(R.string.Sep); break; case 9: ShortMonth = getString(R.string.Oct); break; case 10: ShortMonth = getString(R.string.Nov); break; case 11: ShortMonth = getString(R.string.Dec); break; } TextView datetxt = (TextView) findViewById(R.id.home_date); datetxt.setText(ShortMonth + " " + Day); } </code></pre>