Getting date in informix
Posted in 2005
Topics: General Discussion
How does informix behave when X units month from a date is added or subtracted ? I found it strange ! It returns null if I add a month to 31/05/2005 or I subtracted 3 units month from 31/05/2005 Is there any utility which I can use except for this for getting proper date. sending to informix-list
But there isn't a 31st of Feb so you need to define what the result should be for your environment. You could just subtract 30 days for each month you want to move. You could add 1 day, then subtract 3 months, and then subtract the day, this would get you back to 28th Feb. Check out the software respositiry at www.iiug.org or write your own UDR to do this debadatta_mishra wrote: > > How does informix behave when X units month from a date is added or > subtracted ? > I found it strange ! > It returns null if I add a month to 31/05/2005 or I subtracted 3 units > month from 31/05/2005 > > Is there any utility which I can use except for this for getting proper > date. > > sending to informix-list -- Paul Watson # Oninit Ltd # Growing old is mandatory Tel: +44 1436 672201 # Growing up is optional Fax: +44 1436 678693 # Mob: +44 7818 003457 # www.oninit.com #