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