Date Query
Posted in 1999
Topics: General Discussion
Hi I am working on informix online 7.3. If i have a date 31/01/99 or any year and if i had an query like this select date("31/01/1999") +1 units month this query fails and the message given is "Value of DateTime computation is out of range". The same occurs for 31st of any month. This also occurs for Select date("29/02/2000") +1 units year. This seems to be a leap year problem. Is there any way that Informix hadles such cases or should we take care of this problem while coding. TIA bye ajay ****************************************************************************** Ajay Kumar Singh Associate Systems Engineer SID (MIDC), TATA INFOTECH LTD. Andheri(E) - 400059 Phone-No's: Office - 91-22-8216466 -71 ext. 222 Res. - 91-251-326021 ****************************************************************************** __________________________________ / )| HAVE |( \\ / / | A | \\ \\ _( (_ | GOOD | _) )_ (((\\ \\) | /~) DAY! (~\\ |(/ /))) (\\\\\\\\ \\|/ /____________________________\\ \\|/ ////) \\ / \\ / \\ / \\ / / / \\ \\
How can you add 1 month to the 31st of Jan ? February doesn't have enough days. > select date("31/01/1999") +1 units month this query fails and the > message given is "Value of DateTime computation is out of range".