String.format to get the output date in dd-MMM-YYYY HH:mm pattern (Java)
<pre><code>String.format(start.toString("dd-MMM-YYYY HH:mm"));
</code></pre>

<p>where start is a date input in <code>LocalDateTime</code> class from <code>org.joda.time</code> api</p>

<p>when i am using this code, its returning month like this "Dec" but i want the output as "DEC".</p>
