वीबीस्क्रिप्ट द डेटसेरियल फंक्शन
❮ पूर्ण वीबीस्क्रिप्ट संदर्भDateSerial फ़ंक्शन एक निर्दिष्ट वर्ष, महीने और दिन के लिए उपप्रकार दिनांक का एक प्रकार देता है।
वाक्य - विन्यास
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 |
उदाहरण
उदाहरण 1
<%
response.write(DateSerial(2010,2,3))
%>
उपरोक्त कोड का आउटपुट होगा:
2/3/2010
उदाहरण 2
10 दिन घटाएं:
<%
response.write(DateSerial(2010,2,3-10))
%>
उपरोक्त कोड का आउटपुट होगा:
1/24/2010
❮ पूर्ण वीबीस्क्रिप्ट संदर्भ