格式化时间

来源:互联网 发布:陈桥五笔 for mac 编辑:程序博客网 时间:2024/04/30 03:48
<script language=vbs>
Function fmt(str)
  dim regEx
  Set regEx = New RegExp
  regEx.Pattern = "(?:/b)(/d)(?:/b)"
  regEx.Global = True
  fmt = regEx.replace(str,"0$1")
End Function
msgbox (now)
msgbox (fmt(now))
</script>
原创粉丝点击