DateAdd() 函數返回一個(gè)被改變了的日期。 表達式 DateAdd(timeinterval,number,date) 允許數據類(lèi)型: timeinterval is the time interval to add; number is amount of time intervals to add; date is the starting date. 實(shí)例: <% 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() 函數返回字符串的大寫(xiě)形式. 表達式 UCase(string) 允許數據類(lèi)型: 實(shí)例: <% strTest = "This is a test!!" response.write UCase(strTest) %> 返回結果: THIS IS A TEST!!