W3School TIY Editor
W3School 在线教程
改变方向
暗黑模式
运行代码
<html> <body> <script type="text/vbscript"> document.write(FormatDateTime(date(),vbgeneraldate)) document.write("<br />") document.write(FormatDateTime(date(),vblongdate)) document.write("<br />") document.write(FormatDateTime(date(),vbshortdate)) document.write("<br />") document.write(FormatDateTime(now(),vblongtime)) document.write("<br />") document.write(FormatDateTime(now(),vbshorttime)) </script> <p>FormatDateTime 的语法:FormatDateTime(date,namedformat).</p> </body> </html>