private static synchronized String formatDateAsDate(Date d){
  return formatDateIn.format(d);
}

private static synchronized String formatDateAsDate ( Date d ) { return formatDateIn . format ( d ) ; }
format date synchronized because simpledateformat is invalid
