ฟังก์ชันเดือน VBScript
❮ การอ้างอิง VBScript ที่สมบูรณ์
ฟังก์ชันเดือนส่งกลับตัวเลขระหว่าง 1 ถึง 12 ที่แสดงถึงเดือนของปี
ไวยากรณ์
Month(date)
Parameter | Description |
---|---|
date | Required. Any expression that can represent a date |
ตัวอย่าง
ตัวอย่าง
<%
response.write(Month("2010-02-16"))
%>
ผลลัพธ์ของโค้ดด้านบนจะเป็น:
2
❮ การอ้างอิง VBScript ที่สมบูรณ์