public static String dateToString(Date date,SimpleDateFormat dateFormat){
  return dateFormat.format(date);
}

public static String dateToString ( Date date , SimpleDateFormat dateFormat ) { return dateFormat . format ( date ) ; }
create a formatted date with specific date format
