How to get only Year from DataPart?

 Posted by vishalneeraj-24503 on 12/22/2013 | Category: VB.NET Interview questions | Views: 820 | Points: 40
Answer:

With the help of Year method,we can get Year from Date-part.
It returns Integer number.

For Example:-

MsgBox("Year would be" & Year(Now()))


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response