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());
More Related Contents:
- How to use the TextWatcher class in Android?
- Android Studio installation on Windows 7 fails, no JDK found
- How to make a phone call in android and come back to my activity when the call is done?
- Android Writing Logs to text File
- How to pass data from 2nd activity to 1st activity when pressed back? – android
- How to set timer in android?
- Android: Getting a file URI from a content URI?
- how to implement a long click listener on a listview
- android.content.ActivityNotFoundException: Unable to find explicit activity class
- Android emulator spams logcat with “Service com.android.exchange.ExchangeService has leaked ServiceConnection … that was originally bound here
- How to convert Views to bitmaps?
- Android DatePicker change to only Month and Year
- Not able to achieve Gapless audio looping so far on Android
- PhoneGap camera restarts the application
- How do I maintain the Immersive Mode in Dialogs?
- SharedPreferences and Thread Safety
- Error inflating class androidx.constraintlayout.ConstraintLayout after migration to androidx
- W/System: Ignoring header X-Firebase-Locale because its value was null
- AndroidStudio – Module Dependencies in Gradle
- How to detect app removed from the recent list?
- Android Lollipop, add popup menu from title in toolbar
- Stop all toast messages when going to another screen in Android
- How to make grid-view horizontally scrollable in android
- Gradle project sync failing after Google announced the new sdk versioning system
- Detecting Webview Error and Show Message
- Extract substring from a string
- Creating & Using 9-patch images in Android
- How to call Android contacts list AND Select one phone number from its details screen?
- GCM msg delivery times are WILDLY erratic
- How to change the focus to next edit text in android?