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)
        {
                DateTime  dt5  =  DateTime.Parse("2:15  PM");
                Console.WriteLine(dt5);
        }
}
    
   
  
   



Output

25/03/2007 2:15:00 PM


HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo Date Time
» DateTime Parse ParseExact