VBScript DateSerial İşlevi
❮ Komple VBScript ReferansıDateSerial işlevi, belirtilen yıl, ay ve gün için Date alt türünde bir Variant döndürür.
Sözdizimi
DateSerial(year,month,day)
Parameter | Description |
---|---|
year | Required. A number between 100 and 9999, or a numeric expression. Values between 0 and 99 are interpreted as the years 19001999. For all other year arguments, use a complete four-digit year |
month | Required. Any numeric expression |
day | Required. Any numeric expression |
Örnekler
örnek 1
<%
response.write(DateSerial(2010,2,3))
%>
Yukarıdaki kodun çıktısı şöyle olacaktır:
2/3/2010
Örnek 2
10 gün çıkar:
<%
response.write(DateSerial(2010,2,3-10))
%>
Yukarıdaki kodun çıktısı şöyle olacaktır:
1/24/2010
❮ Komple VBScript Referansı