87,910
社区成员
发帖
与我相关
我的任务
分享
System.out.println(new SimpleDateFormat("yyyy-MM-dd").format(new Date(677343600000L)));
输出结果:1991-06-20
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title> New Document </title>
<meta name="Generator" content="EditPlus">
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">
<script type="text/javascript">
var d1=new Date();
d1.setTime(677343600000);
alert(d1.getDate());
</script>
</head>
<body>
</body>
</html>
:输出结果19