private static synchronized String formatDateAsTime(Date d){
  return formatTimeIn.format(d);
}

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