DateUtil { public static Calendar getToday() throws ParseException { Date today = new Date(); SimpleDateFormat df = new SimpleDateFormat(getDatePattern()); String todayAsString = df.format(today); Calendar cal = new GregorianCalendar(); cal.setTime(convertStringToDate(todayAsString)); return cal; } private  DateUtil(); static String getDatePattern(); static String getDateTimePattern(); static String getDate(Date aDate); static Date convertStringToDate(String aMask, String strDate); static String getTimeNow(Date theTime); static Calendar getToday(); static String getDateTime(String aMask, Date aDate); static String convertDateToString(Date aDate); static Date convertStringToDate(final String strDate);  }
@Test public void testGetToday() throws ParseException { assertNotNull(DateUtil.getToday()); }