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


C# Examples » Date Time » DateTime Parse ParseExact »

 

DateTime.ParseExact









    
using  System;

class  MainClass
{
        public  static  void  Main(string[]  args)
        {
                DateTime  dt6  =  DateTime.ParseExact("2:13:30  PM",  "h:mm:ss  tt",  null);
                Console.WriteLine(dt6);
        }
}
    
   
  
   



Output

25/03/2007 2:13:30 PM


HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo Date Time
» DateTime Parse ParseExact