Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

2-digit date settings 1

Status
Not open for further replies.

sacsac

Programmer
Dec 10, 2000
177
GB
How can I retrieve the system Region & Language settings which define the year span used for 2-digit years. (e.g. 1932 to 2031) ?
 
how about:

System.Globalization.CultureInfo.CurrentCulture.Calendar.TwoDigitYearMax

which should give you the ending year... subtract 99, that'll give you your starting year for the range.

Cheers,

Realm174
 
Thank you realm174. That's exactly what I was looking for!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top