Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我收到来自网络服务的日期响应编码:1367726400000。
如何以 dd-mm-yy 格式制作它?
试试这个代码 -
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss z"); System.out.println("Now: " + sdf.format(new Date(1367726400000 )));