|
Description Syntax Return
Datatype Example Migration
Year Function - Visual Basic 6.0 (VB 6.0) |
Returns a Variant (Integer) containing a whole number
representing the year. |
|
Syntax: |
Year(date)
Parameter |
Description |
date |
Required. Variant, numeric expression, string expression,
or any combination, that can represent a date. |
|
Return Data type: |
|
Integer |
Example: |
Statement |
Result |
Remark |
Year(Date) |
|
Current System Year |
|
Year(#Feb 28 1990#) |
|
|
|
Year(DateAdd("q", 5, date)) |
|
|
|
Year(1) |
|
from 31/12/1899 |
|
Year(unknown) |
|
from 30/12/1899 |
|
Year(Null) |
Null |
|
|
Year(True) |
1899 |
from 29/12/1899 |
|
Year(False) |
1899 |
from 30/12/1899 |
 |
|
|
Migration from Visual Basic 6.0 (VB 6.0) to |
|
Year Function in VB Script (VBS) |
|
Year Function in JScript (JS) |
|
Year Function in ASP (Active Server Page) |
|
Year Function in PHP Script |
|
Year Function in MS-Access |
|
Year Function in MS SQL Server |
|
Year Function in Oracle |
|
Year Function in C Language |
|
Year Function in C++ Language |
|
Year Function in Foxpro |
|
Year Function in Fortran |
|
Year Function in MS Excel Sheet |
 |
|
|
|
|