public static String dateToString(Date date){
  SimpleDateFormat formatter=new SimpleDateFormat(ISO_DATE_FORMAT);
  formatter.setTimeZone(TimeZone.getTimeZone("GMT"));
  return formatter.format(date);
}

public static String dateToString ( Date date ) { SimpleDateFormat formatter = new SimpleDateFormat ( ISO_DATE_FORMAT ) ; formatter . setTimeZone ( TimeZone . getTimeZone ( "GMT" ) ) ; return formatter . format ( date ) ; }
converts a date object to a iso date string
