public String currentDate(String format){
  DateFormat formatter=getFormatter(format);
  return formatter.format(new Date());
}

public String currentDate ( String format ) { DateFormat formatter = getFormatter ( format ) ; return formatter . format ( new Date ( ) ) ; }
get the current date .
