public static String nowDateString(String format){
  SimpleDateFormat df=new SimpleDateFormat(format);
  return df.format(new Date());
}

public static String nowDateString ( String format ) { SimpleDateFormat df = new SimpleDateFormat ( format ) ; return df . format ( new Date ( ) ) ; }
return a string formatted as format
