📄 test2_6_3.htm
字号:
<html>
<head>
<title>test</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body bgcolor="#FFFFFF">
<script language="VBScript">
option explicit
dim mydate
mydate=#10/17/2000 6:19:20 PM#
document.write("示范用date对象时间: ")
document.write(mydate)
document.write("<br>")
document.write("该date对象的年份: ")
document.write(year(mydate))
document.write("<br>")
document.write("该date对象的月份: ")
document.write(month(mydate))
document.write("<br>")
document.write("该date对象的日期数: ")
document.write(day(mydate))
document.write("<br>")
document.write("该date对象是星期: ")
'注意VBScript星期数从星期天开始计,即星期日为1
document.write(weekday(mydate)-1)
document.write("<br>")
document.write("该date对象的小时数: ")
document.write(hour(mydate))
document.write("<br>")
document.write("该date对象的分钟数: ")
document.write(minute(mydate))
document.write("<br>")
document.write("该date对象的秒数: ")
document.write(second(mydate))
document.write("<br>")
</script>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -