更好的方法
简单使用
SimpleDateFormat
new SimpleDateFormat("MM/dd/yyyy").format(new Date(timeStampMillisInLong));方法上的错误
DAY_OF_MONTH,,
MONTH.. etc只是
Calendar类内部使用的常量int值
你可以得到所代表的日期
cal由
cal.get(Calendar.DATE)

更好的方法
简单使用
SimpleDateFormat
new SimpleDateFormat("MM/dd/yyyy").format(new Date(timeStampMillisInLong));方法上的错误
DAY_OF_MONTH,,
MONTH.. etc只是
Calendar类内部使用的常量int值
你可以得到所代表的日期
cal由
cal.get(Calendar.DATE)