Attempting to find date format for my android calendar events
<p>I'm using this android calendar <a href="http://w2davids.wordpress.com/android-simple-calendar/" rel="nofollow">http://w2davids.wordpress.com/android-simple-calendar/</a> and attempting to populate it with events. </p>

<p>In the code below, it has an example of taking the dateCreated, which I assume is a timestamp, and does some sort of conversion on it. What does "dd" do?</p>

<p>I want to know what "day" is so I can tailor it to my own data.</p>

<pre><code>         /**
                 * NOTE: YOU NEED TO IMPLEMENT THIS PART Given the YEAR, MONTH, retrieve
                 * ALL entries from a SQLite database for that month. Iterate over the
                 * List of All entries, and get the dateCreated, which is converted into
                 * day.
                 * 
                 * @param year
                 * @param month
                 * @return
                 */
                private HashMap findNumberOfEventsPerMonth(int year, int month)
                    {
                        System.out.println("BARGH!");
                        HashMap map = new HashMap&lt;String, Integer&gt;();
                        // DateFormat dateFormatter2 = new DateFormat();
                        //                      
                        // String day = dateFormatter2.format("dd", dateCreated).toString();
                        //
                        // if (map.containsKey(day))
                        // {
                        // Integer val = (Integer) map.get(day) + 1;
                        // map.put(day, val);
                        // }
                        // else
                        // {
                        // map.put(day, 1);
                        // }
                        return map;
                    }
</code></pre>
