5 Replies Latest reply on Oct 14, 2008 12:53 PM by 800308

    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'