VBScript DayFunction
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>
document.write(Day("2010-02-16"))
</script>
The output of the above example is:
16
Try it Yourself »
Complete VBScript Reference Other Extensions