如何将 ParseObject 的 createdAt 日期获取为字符串?

How to get ParseObject's createdAt date as String?

如何从 ParseObjectcreatedAt 列中获取日期并将其转换为 DD-MM-YYYY 格式的 String

您需要像这样从 Parse 中获取日期:

Date date = object.getCreatedAt();

然后在适配器中或任何你想要的地方:

DateFormat df = new SimpleDateFormat("dd-MM-yyyy");
String reportDate = df.format(date);