用VBSrcipt判斷是否是日期
更新時間:2007年03月09日 00:00:00 作者:
<SCRIPT LANGUAGE="vbScript">
<!--
'判斷是否是日期
function thisdate(dt)
if not IsDate(dt) then
thisdate=false
elseif int(left(dt,4))<int(1750) then
thisdate=false
else
thisdate=true
end if
end function
//-->
</SCRIPT>
<!--
'判斷是否是日期
function thisdate(dt)
if not IsDate(dt) then
thisdate=false
elseif int(left(dt,4))<int(1750) then
thisdate=false
else
thisdate=true
end if
end function
//-->
</SCRIPT>
相關(guān)文章
VBS教程:正則表達(dá)式簡介 -優(yōu)先權(quán)順序
VBS教程:正則表達(dá)式簡介 -優(yōu)先權(quán)順序...2006-11-11VBS中CreateObject和WScript.CreateObject的區(qū)別介紹
很多VBS新手都很困惑CreateObject和WScript.CreateObject有什么區(qū)別,為什么一些代碼中用CreateObject,而另一些卻用WScript.CreateObject2013-05-05VBScript 根據(jù)IE窗口的標(biāo)題輸出ESC
這篇文章主要介紹了VBScript 根據(jù)IE窗口的標(biāo)題輸出ESC,代替人工按esc操作的實現(xiàn)代碼,需要的朋友可以參考下2018-04-04