展开全部
<%
Dim time
time = now()
response.Write(time)
%>
也可以这样写
<%
Dim time
time = now()
%>
<%
response.Write(time)
%>
另外一种带星期几的
<div align="left">
<script language="javascript"><!--
today=new Date();
var week;
if(today.getDay()==0) week="星期日"
if(today.getDay()==1) week="星期一"
if(today.getDay()==2) week="星期二"
if(today.getDay()==3) week="星期三"
if(today.getDay()==4) week="星期四"
if(today.getDay()==5) week="星期五"
if(today.getDay()==6) week="星期六"
document.write("<span style='font-size: 12pt;'>"+week+"</span>");
// -->
</script>
<%
Dim times
times = now()
%>
<%
response.Write(times)
%>
</div>
效果地址:
http://music.lanniaogzs.com:168/time.asp
Dim time
time = now()
response.Write(time)
%>
也可以这样写
<%
Dim time
time = now()
%>
<%
response.Write(time)
%>
另外一种带星期几的
<div align="left">
<script language="javascript"><!--
today=new Date();
var week;
if(today.getDay()==0) week="星期日"
if(today.getDay()==1) week="星期一"
if(today.getDay()==2) week="星期二"
if(today.getDay()==3) week="星期三"
if(today.getDay()==4) week="星期四"
if(today.getDay()==5) week="星期五"
if(today.getDay()==6) week="星期六"
document.write("<span style='font-size: 12pt;'>"+week+"</span>");
// -->
</script>
<%
Dim times
times = now()
%>
<%
response.Write(times)
%>
</div>
效果地址:
http://music.lanniaogzs.com:168/time.asp
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询