fork(85) download
  1. using System;
  2. using System.Globalization;
  3.  
  4. public class Test
  5. {
  6. public static void Main()
  7. {
  8. DateTime date = DateTime.ParseExact("04/30/2013 23:00", "MM/dd/yyyy HH:mm", CultureInfo.InvariantCulture);
  9. Console.WriteLine(date);
  10. }
  11. }
Success #stdin #stdout 0.07s 34192KB
stdin
Standard input is empty
stdout
4/30/2013 11:00:00 PM