How to get only Year from DataPart?

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

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