use the DaysInMonth() method to retrieve the number of days in a particular month and year : Date Time : Development Class C# Source Code


Custom Search

C# Source Code » Development Class » Date Time »

 

use the DaysInMonth() method to retrieve the number of days in a particular month and year








    
 


using System;

class MainClass {

    public static void Main() {
        int days = DateTime.DaysInMonth(2004, 1);
        Console.WriteLine("DateTime.DaysInMonth(2004, 1) = " + days);

    }
}

 
    
   
  
   







HTML code for linking to this page:

Follow Navioo On Twitter

C# Source Code

 Navioo Development Class
» Date Time