वीबीस्क्रिप्ट महीनानाम समारोह
❮ पूर्ण वीबीस्क्रिप्ट संदर्भ
महीनानाम फ़ंक्शन निर्दिष्ट महीने का नाम देता है।
वाक्य - विन्यास
MonthName(month[,abbreviate])
Parameter | Description |
---|---|
month | Required. Specifies the number of the month (January is 1, February is 2, etc.) |
abbreviate | Optional. A Boolean value that indicates if the month name is to be abbreviated. Default is False |
उदाहरण
उदाहरण 1
आठवें महीने का नाम प्राप्त करें:
<%
response.write(MonthName(8))
%>
उपरोक्त कोड का आउटपुट होगा:
August
उदाहरण 2
आठवें महीने का संक्षिप्त नाम प्राप्त करें:
<%
response.write(MonthName(8,True))
%>
उपरोक्त कोड का आउटपुट होगा:
Aug
❮ पूर्ण वीबीस्क्रिप्ट संदर्भ