Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

VBScript Year function


May 13, 2021 VBScript


Table of contents


VBScript Year function

The VBScript Year function returns a value that represents the year.


VBScript Year function Complete VBScript reference manual

The Year function returns a number that represents the year.

Grammar

Year(date)

Parameters

parameter describe
date Required.Any expression that represents the date.
<script type="text/vbscript">

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

</script>

The above example output results:

2010

Try it out . . .


VBScript Year function Complete VBScript reference manual