fork(1) download
  1. using System;
  2. using System.Globalization;
  3.  
  4. public class Program {
  5. public static void Main() => Console.WriteLine(DateTime.ParseExact("sex, nov 6", "ddd, MMM d", new CultureInfo("pt-BR")));
  6. }
  7.  
  8. //https://pt.stackoverflow.com/q/96670/101
Runtime error #stdin #stdout #stderr 0.04s 17288KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Unhandled Exception:
System.FormatException: String was not recognized as a valid DateTime because the day of week was incorrect.
  at System.DateTimeParse.ParseExact (System.String s, System.String format, System.Globalization.DateTimeFormatInfo dtfi, System.Globalization.DateTimeStyles style) [0x0002a] in <6649516e5b3542319fb262b421af0adb>:0 
  at System.DateTime.ParseExact (System.String s, System.String format, System.IFormatProvider provider) [0x00008] in <6649516e5b3542319fb262b421af0adb>:0 
  at Program.Main () [0x00014] in <d651ef619a8c4c519c889b247eb296ed>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: System.FormatException: String was not recognized as a valid DateTime because the day of week was incorrect.
  at System.DateTimeParse.ParseExact (System.String s, System.String format, System.Globalization.DateTimeFormatInfo dtfi, System.Globalization.DateTimeStyles style) [0x0002a] in <6649516e5b3542319fb262b421af0adb>:0 
  at System.DateTime.ParseExact (System.String s, System.String format, System.IFormatProvider provider) [0x00008] in <6649516e5b3542319fb262b421af0adb>:0 
  at Program.Main () [0x00014] in <d651ef619a8c4c519c889b247eb296ed>:0