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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VB6 and Dates

Status
Not open for further replies.

nathj

Programmer
Oct 11, 2004
33
GB
We have a VB6 app that allows the user to enter a date. If a two digit date is supplied the control determines whether this is a 2000 date or 1900 date. It appears that the cur off point for the rollover is 29.

So the date 01/01/29 converts to 01/01/2029 and anything after that converts as follows
01/01/30 becomes 01/01/1930.

Is there a way to control this rollover point?
 
This is a system wide setting. You can change this by going to Regional and Language options in the control panel (this is what it's called in XP) and then click the Customize button. Then, on the Date Tab you can change it for when a two-digit year is entered.
 
Thank you very much. This has fixed the problem.
Cheers
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top