/** Formats todays date with the passed in date format String. See the main method for sample Formats */ public static String getFormattedDateNow(String format) { return getFormattedDate(format, new Date()); }
/** Formats todays date with the passed in date format String. See the main method for sample Formats */ public static String getFormattedDateNow(String format) { return getFormattedDate(format, new Date()); }
System.out.println("dayofweek="+getDayOfWeek(date)); System.out.println("shortdate="+getShortDate(date)); System.out.println("formatteddate="+getFormattedDate("dd-MMM-yy",date)); System.out.println("month="+getMonth()); System.out.println("dayofweek="+getDayOfWeek());