// throws System.FormatException
var number = int.Parse(" 1,000 ");
// parses into 1000
var number = int.Parse(" 1,000 ", System.Globalization.NumberStyles.AllowThousands | System.Globalization.NumberStyles.AllowLeadingWhite | System.Globalization.NumberStyles.AllowTrailingWhite);
source: https://codewithshadman.com/csharp-number-and-datetime-tips
//parses
var d1 = DateTime.ParseExact("02/21/2020", "MM/dd/yyyy", null);
//throws exec
var d2 = DateTime.ParseExact("21/02/2020", "MM/dd/yyyy", null);
source: https://codewithshadman.com/csharp-number-and-datetime-tips