编辑下面的代码:【加编码】
<html> <body> <script type="text/vbscript"> d=CDate("2010-02-16 13:45") document.write(FormatDateTime(d) & "<br>") document.write(FormatDateTime(d,1) & "<br>") document.write(FormatDateTime(d,2) & "<br>") document.write(FormatDateTime(d,3) & "<br>") document.write(FormatDateTime(d,4) & "<br>") </script> </body> </html>
结果: 【此窗口】 帮助?
Try it Yourself - © 自强学堂