<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title>Test DateTime</title>
        <script type="text/javascript" language="javascript">
            function TextDate()
            {
                var msel = Date.parse(document.getElementById("txtTime").value.replace(/\-/g, '/'));//返回毫秒数
                var time = new Date(msel);
                alert(time.getFullYear() + "-" + (time.getMonth() + 1) + "-" + time.getDate());
            }
        </script>
    </head>
    <body>
        <input />
    </body>
</html>
以后靠你们自己发挥罗!

相关文章:

  • 2021-07-16
  • 2021-09-10
  • 2021-06-13
  • 2022-12-23
  • 2021-11-04
  • 2022-12-23
  • 2021-12-18
猜你喜欢
  • 2021-06-20
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-07
相关资源
相似解决方案