I want to know the range of DateTime.TryParseExact method or Convert.ToDateTime() having dd/MM/yy as input format.
like
DateTime.TryParseExact("01/07/05","dd/MM/yy", new CultureInfo("en-US"),DateTimeStyles.None, out dateValue)
or
DateTime Time=Convert.ToDateTime("01/07/05");
If i will give 01/07/35, it will not know whether I am talking about 1835,1935,2035. So defiantly it has some range. Any body know about its rang with some reference ?
Thanks
If you’re asking how a two digit year is interpreted, it depends on the culture’s TwoDigitYearMax property
Which depends on the computer’s settings. To see what the setting is go to: