public String currentDate(String format,String timezone){
  DateFormat formatter=getFormatter(format);
  if (StringUtils.isNotBlank(timezone)) {
    formatter.setTimeZone(TimeZone.getTimeZone(timezone));
  }
  return formatter.format(new Date());
}

public String currentDate ( String format , String timezone ) { DateFormat formatter = getFormatter ( format ) ; if ( StringUtils . isNotBlank ( timezone ) ) { formatter . setTimeZone ( TimeZone . getTimeZone ( timezone ) ) ; } return formatter . format ( new Date ( ) ) ; }
get the current date .
