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:
Related in same category :
-
-
-
-
-
-
-
-
-
|