<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Date时间</title>
<script>
var now = new Date();
now.getFullYear();
now.getMonth();
now.getDate();
now.getDay();
now.getHours();
now.getMinutes();
now.getSeconds();
now.getTime();
</script>
</head>
<body>
</body>
</html>