fork(1) download
  1. using System;
  2. using System.Globalization;
  3.  
  4. public class Test
  5. {
  6. public static void Main()
  7. {
  8. string s = "01/01/2013";
  9. DateTime dt = DateTime.ParseExact(s, "dd/MM/yyyy", CultureInfo.InvariantCulture);
  10. Console.WriteLine(dt);
  11. }
  12. }
Success #stdin #stdout 0.06s 34080KB
stdin
Standard input is empty
stdout
1/1/2013 12:00:00 AM