5 Replies Latest reply: Oct 14, 2008 7:53 AM by 800308 RSS

    how to get the currrent month and year from a new date object

      If I create a new Date object as "d",
      java.util.Date d = new java.util.Date();
      how can I format the date to get the current Month as 'Jan' and the current year as '2008'. So if I have something like d.getMonth() gets the current month as 'Oct' and d.getYear() gets '2008'