我想知道DateTime.TryParseExact方法或Convert.ToDateTime()有DD / MM / YY输入格式的范围。 类似
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)或
DateTime Time=Convert.ToDateTime("01/07/05");如果我会给35年1月7日,它将不知道我是否在谈论1835年, 1935,2035。所以挑衅它有一定的范围。任何机构了解它的响了起来具有一定的参考?
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 ?
感谢
推荐答案如果你问一个两位数的年份如何解释,这取决于文化的的 TwoDigitYearMax 财产
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:
更多推荐
什么是DateTime.TryParseExact或Convert.ToDateTime(),具有日期格式DD / MM / YY的范围
发布评论