<!DOCTYPE html>
<html>
<meta charset="utf-8">
<title>获取时间函数_date</title>
</head>
<body>
<script type="text/javascript">
var myday=new Date()
document.write(myday+'<br>')
//getFullYear
document.write(myday.getFullYear()+"年")
var d = new Date()
document.write(d.getFullYear()+'<br>')
document.write(myday.getFullYear()+"年")
document.write(myday.getDate())
</script>
</body>
</html>