DateAdd() 函數(shù)返回一個被改變了的日期。 表達式 DateAdd(timeinterval,number,date) 允許數(shù)據(jù)類型: timeinterval is the time interval to add; number is amount of time intervals to add; date is the starting date. 實例: <% currentDate = #9/9/00# newDate = DateAdd("m",3,currentDate) response.write newDate %> <% currentDate = #12:34:45 PM# newDate = DateAdd("h",3,currentDate) response.write newDate %> 返回結果: 9/9/00 3:34:45 PM "m" = "month"; "d" = "day"; If currentDate is in time format then, "h" = "hour"; "s" = "second";
UCase() 函數(shù)返回字符串的大寫形式. 表達式 UCase(string) 允許數(shù)據(jù)類型: 實例: <% strTest = "This is a test!!" response.write UCase(strTest) %> 返回結果: THIS IS A TEST!!