DateTime.Parse : DateTime Parse ParseExact : Date Time C# Examples


C# Examples » Date Time » DateTime Parse ParseExact »

 

DateTime.Parse









    
using  System;

class  MainClass
{
        public  static  void  Main(string[]  args)
        {
                //  1st  September  2005  00:00:00
                DateTime  dt1  =  DateTime.Parse("Sep  2005");
                Console.WriteLine(dt1);
        }
}
    
   
  
   



Output

01/09/2005 12:00:00 AM


HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo Date Time
» DateTime Parse ParseExact