How do we retrieve day, month and year from the datetime value in C#?

 Posted by Nishithraj on 1/5/2010 | Category: C# Interview questions | Views: 2283

Using the methods Day,Month and Year as follows

int day = dobDate.Day;

int month = dobDate.Month;i
nt year = dobDate.Year;

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response