Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

When we enter a date into a form with a 2 digit year (eg 1/1/96) Informix adds “1900” to it nicely for me. Will it add “2000” at the turn of the century?

0
Posted

When we enter a date into a form with a 2 digit year (eg 1/1/96) Informix adds “1900” to it nicely for me. Will it add “2000” at the turn of the century?

0

The bad news: No, current versions will not. You’ll have to change all your screens to accept 4 digit years and check to make sure sensible values have been entered. You might want to add a CHECK constraint to your date columns: CHECK (YEAR(datecol) >= 1950) The good news: If your code is based on a product using the (as yet unreleased) 7.20 ESQL/C, or some later version, will you get the more flexible behaviour given by the DBCENTURY environment variable, which is documented below. At the moment, there are no plans to back-port this to any of the version 4, 5 or 6 products.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123