title: Get current date in a specific format
body: <p>I am trying to retrieve the current date in the following format: <code>21-FEB-17</code>.</p>
  
  <p>I have the following code but it isn't the format I need. It prints out in the following format: <code>21-February-17.</code></p>
  
  <pre><code>Format formatter = new SimpleDateFormat("dd-MMMM-yy");
  String today = formatter.format(new Date());
  System.out.println(today);
  </code></pre>