各位大侠:
小弟,做的程序需要从客户端取得远程服务器端的系统时间!请问:如何可以实现?
谢谢!
<script>
alert("<%=now()%>")
</script>
to fason:
我发现
<script>
alert("<%=now()%>")
</script>
得出的时间其实是客户端的时间,不是服务器的时间。
我认为应该是由数据库里面的函数获得比较妥当:
sql="select getDate" 实现‘这是sql server的,access我不记得用什么函数了。
上面语句应该为:
sql="select getDate()"
set rs=conn.execute(sql)
response.write rs(0)this is the just time
<script>
alert("<%=now()%>")
</script>
肯定是服务器的时间啦
除非你用你的机子即做服务器又做客户端
??当然是系统时间了
呵呵呵
..........
</慕白兄>
<%response.write "现在时间:"& now &"<br>"%>
明显是<%=now()%>,<%%>只在服务器端执行呀! annkie(雨中行) 错得可爱呀。