fork(2) download
  1. using System;
  2. using System.Collections;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Globalization;
  7. using System.Text.RegularExpressions;
  8. using System.IO;
  9. using System.Diagnostics;
  10. using System.Net.Mail;
  11. using System.Web;
  12.  
  13.  
  14.  
  15. namespace Enum
  16. {
  17. class Program
  18. {
  19. static void Main(string[] args)
  20. {
  21. string s = "11/13/2013 21:00:00";
  22. DateTime dt = DateTime.ParseExact(s, "MM/dd/yyyy HH:mm:ss", CultureInfo.InvariantCulture);
  23. Console.WriteLine(dt);
  24. }
  25. }
  26. }
  27.  
Success #stdin #stdout 0.07s 34144KB
stdin
Standard input is empty
stdout
11/13/2013 9:00:00 PM