Questions tagged «android-date»


25
如何在Android中获取当前日期?
我写了下面的代码 Date d = new Date(); CharSequence s = DateFormat.format("MMMM d, yyyy ", d.getTime()); 但是问我参数,我想要字符串格式的当前日期, 喜欢 28-Dec-2011 这样我就可以设置了TextView, 解释一下,如果您认为有必要,我是Android开发的新手。

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.