28 th Jun 2022 21:00:08
Hai Friend , Sign In
Home
World
INDIA
Chennai City
Games
Developers
Members
Birthday
Search
Astrology
G. K.
Story
Tamil Nadu Government Holiday List 2018 in English and Tamil   *   Trichy: Wanted - PHP, MySql Programmers. Contact trichy people only 84894 28 444.   *   Indian Railways New Train Number List [Search / Enquiry / Locator / Finder]   *   பன்றிக் காய்ச்சல் பற்றி அறிந்து கொள்ளுங்கள் (Swine Flu H1N1)
See Also
Date Function Date Function
Day Function Day Function
Month Function Month Function
Now Function Now Function
WeekDay Function Weekday Function
Date Time Functions Date Time Functions
Visual Basic Functions Visual Basic Functions
Visual Basic Home Visual Basic Home
 
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
Go to top

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
Go to top
 





© 2021 Chennaiiq.com. All Rights Reserved.

3913