📜  android 日期时间 - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:21.806000             🧑  作者: Mango

代码示例4
String dateStr = "04/05/2010"; 

SimpleDateFormat curFormater = new SimpleDateFormat("dd/MM/yyyy"); 
Date dateObj = curFormater.parse(dateStr); 
SimpleDateFormat postFormater = new SimpleDateFormat("MMMM dd, yyyy"); 

String newDateStr = postFormater.format(dateObj);