you have to call the the method through object. It is not a static method.
android.text.format.DateFormat df = new android.text.format.DateFormat();
dateTextView.setText(df.format("dd/MM/yyyy hh:mm:ss", date).toString());
2
solved Cannot resolve method ‘format (java.lang.string,java.Util.Date)’ [closed]