fork(1) download
  1. using System;
  2. using System.Globalization;
  3.  
  4. public class Example
  5. {
  6. public static void Main()
  7. {
  8. string dateString, format;
  9. DateTime result;
  10. CultureInfo provider = new CultureInfo("en-US");
  11.  
  12. string lastUpdatedDate = "20150219T045452:635599184921416348";
  13. string[] parse = lastUpdatedDate.Split(':');
  14. lastUpdatedDate = parse[0] + ":" + parse[1].Substring(0,3);
  15. DateTime dt = DateTime.ParseExact(lastUpdatedDate,"yyyyMMddTHHmmss:fff",provider);
  16. }
  17. }
  18.  
Success #stdin #stdout 0.04s 24192KB
stdin
Standard input is empty
stdout
Standard output is empty