What is the output of below code?

Dim dt As Date = DateAdd(DateInterval.Day,1,Date.Now())

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

It will show Tomorrow' date as 12/25/2013 2:02:08 PM as today id 24th December.

DateAdd as the name implies,Adds date prior or later based on the format and DateInterval is an Enum that has Day,Hour,Minute and so on. values.

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response