标签: java json date jettison
目前我正在寻找
输入:Date applicationDate;
Date applicationDate;
输出:1318636800000
1318636800000
如何正确格式化此日期输出?
答案 0 :(得分:1)
你可以这样做:
Calendar cal = Calendar.getInstance(); Date now = new Date(); cal.setTime(now); System.out.println(cal.getTimeInMillis());