你必须通过对象调用方法.它不是一种静态方法.
android.text.format.DateFormat df = new android.text.format.DateFormat();
dateTextView.setText(df.format("dd/MM/yyyy hh:mm:ss", date).toString());
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
4145 次 |
| 最近记录: |