Getting error message ,The DateTime represented by the string is not supported in calendar System.Globalization.GregorianCalendar

34/34/2021 is not a valid date
last month in year is 12
latest day in a month is 31

so it is reasonable that the exception states that this date is not conatined in a calendar

we can handle this with tryParseExact as mentioned by Yoichi

Also have a look here on how to handle multiple dateformats (TryParseExact, ParseExcact)