Parse string to DateTime "2012/09/17" in CSharp
Description
The following code shows how to parse string to DateTime "2012/09/17".
Example
using System;//from w ww .j ava 2 s . c om
public class IsLeapYear
{
public static void Main()
{
DateTime dt = DateTime.Parse("2012/09/17");
Console.WriteLine(dt);
}
}
The code above generates the following result.