Get the 17-digit current time, such as: 20091210105237238 = December 10, 2009 10:52:37:238. Next, get the milliseconds. Friends who are interested can refer to it. I hope it can help you . Copy the code as follows:
<%@ Language=VBScript %><%Response.Expires =0 %>
<DOCTYPE html public='-//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>
<HTML xmlns=http://www.w3.org/1999/xhtml>
<HEAD>
<META http-equiv=Content-Type content=text/html; charset=gb2312>
</META>
<TITLE>
Test milliseconds
</TITLE>
</HEAD>
<BODY>
<SCRIPT RUNAT=SERVER LANGUAGE=JSCRIPT>
var d = new Date();
Session(ms) = d.getMilliseconds();
Response.Write(Session(ms))
</SCRIPT>
<BR>
<%=Session(ms)%>
</BODY>
</HTML>
The following code gets the 17-digit current time
For example: 20091210105237238=December 10, 2009 10:52:37:238
<SCRIPT RUNAT=SERVER LANGUAGE=JSCRIPT>
var d = new Date();
Session(ms) = d.getMilliseconds();
</SCRIPT>
<%
'Get the year, month and day in 20090101 format
id=year(now())&right(month(now())+100,2)&right(day(now())+100,2)
'Get the time in 010101 format
id=id&right(replace(time(),:,)+1000000,6)
'Get the 3-digit millisecond
id=id&right(Session(ms)+1000,3)
response.Write(id)
%>