跳到主要內容

[ASP]指定年月日轉成Date DateSerial

用VB.net習慣後
對於要建立一個新的Date型態的數值
會很直覺的用
Dim d as new Date(2013,4,9) 可是在asp卻不能直接用new
得用DateSerial

用法如下
d=DateSerial(2013,4,9) 這樣d就是 Date型態的數值了

留言