源代码:
<% response.write(FormatDateTime(date(),vbgeneraldate)) response.write("
") response.write(FormatDateTime(date(),vblongdate)) response.write("
") response.write(FormatDateTime(date(),vbshortdate)) response.write("
") response.write(FormatDateTime(now(),vblongtime)) response.write("
") response.write(FormatDateTime(now(),vbshorttime)) %>
Syntax for FormatDateTime: FormatDateTime(date,namedformat).
运行结果:
<% response.write(FormatDateTime(date(),vbgeneraldate)) response.write("
") response.write(FormatDateTime(date(),vblongdate)) response.write("
") response.write(FormatDateTime(date(),vbshortdate)) response.write("
") response.write(FormatDateTime(now(),vblongtime)) response.write("
") response.write(FormatDateTime(now(),vbshorttime)) %>
Syntax for FormatDateTime: FormatDateTime(date,namedformat).