VBScript DayFunction


VBScript 参考手册Complete VBScript Reference

The Day function returns a number between 1 and 31 that represents the day of the month.

Syntax

Day(date)

Parameter Description
date Required. Any expression that represents a date.

Example

Example

<script type="text/vbscript">

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

</script>

The output of the above example is:

16

Try it Yourself »


VBScript 参考手册Complete VBScript Reference Other Extensions