title: formatting a date in an array
body: <p>I have a 2-dimensional array which retrieves a date from a database. I want the value to be formatted in days only, "12","13". How can I achieve this this?</p>
  
  <p>This is my code:</p>
  
  <pre><code>String headerQuery = "SELECT DISTINCT attendance FROM Attendance;";
              Object[][] headerQueryResult = connectToDB(headerQuery);
  
              for(int x = 0; x &lt; headerQueryResult.length; x++){
                  for(int y=0; y &lt; headerQueryResult[x].length; y++){
                      System.out.print(headerQueryResult[x][y]+" ");
  
                  }
                  System.out.println("---");
              }
  </code></pre>