Saturday, January 8, 2011

Last Day Of Month.

   int i = System.DateTime.DaysInMonth(DateTime.Now.Year, DateTime.Now.Month);
      int j = System.DateTime.DaysInMonth(2010,3);


         
                   MessageBox.Show("Last Day is : " + i.ToString());
                   MessageBox.Show("Last Day is : " + j.ToString());

No comments:

Post a Comment