MyBean b = new MyBean(); Calendar xmas = new GregorianCalendar(1998, Calendar.DECEMBER, 25); Date date = xmas.getTime(); b.setDate(new Date()); return b;