Latest web development tutorials

VBScript Month function

VBScript Reference Complete VBScript Reference

Month function returns a numeric representation of the month, between 1-12.

grammar

Month(date)

参数 描述
date 必需。任何表示日期的表达式。

Examples

Examples

<script type="text/vbscript">

document.write(Month("2010-02-16"))

</script>

Examples of the above output:

2

try it"


VBScript Reference Complete VBScript Reference