I am trying to retrieve which day of the month it is.
Such as today is August 29,2011.
What i would like to do is just get the days number such as 29, or 30.
You could start by reading the documentation for Date. Then you realize that Date’s methods are all deprecated and turn to Calender instead.
Calendar now = Calendar.getInstance(); System.out.println(now.get(Calendar.DAY_OF_MONTH));