c# - Mono error format exception but not on windows -


Is there any reason that I get this error on mono but not on windows?

  Exception without action: System.FormatException: Invalid format string (String, String [], System.DormatProvider, System on System.DateTime.ParseExact .Glo balization.DateTimeStyles) & lt; 0x00127 & gt; 0x0004f & gt; System.DateTime.ParseExact (string, string, System.iformatProvider, System.Globa lization.DateTimeStyles) & lt; System.DateTime.ParseExact (string, string, system.formatprovider) & lt; 0x0001f> (Cover Dynamic-Method) on object.CallSite.Target (System.Runtime.CompilerServi ces.Closure, System.Runtime.CompilerServices.CallSite, System.Type, Object, String, s ystem.Globalization.DateTimeFormatInfo); 0x000f3> System.Type, Object, String, System.Globalization.DateTimeFormatInfo, Object & gt; System.Dynamic.UpdateDelegates.UpdateAndExecute4 & lt; (System.Runtime.CompilerServic es.CallSite, System.Type, object, string, System.Globalization.DateTimeFormatInfo) & lt; 0x00418 & gt; TwitterScraper.Program.scrapeTwitter () & lt; 0x00a22 & gt; TwitterScraper.Program.Main (string []) & lt; 0x000bf>   

Use this code here

  date time tweettime = DateTime.ParseExact (obj ["created_at"] ToString (), "DMDMM DD HH: MM: SS% K", Culture Info. Inventive Culture. Debt Timeformat);   

It is used to combat Twitter's time format.

Try it instead:

  dateoff offset timer = DateTime offset.PrescExact (Your EncashString, "DAD MMM DD HH: MM: SS Zz Yay", Culture Info. Invent Culture);    

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -