keepingbusy
Programmer
Hi
Is there an explanation to this?
I have a numeric variable on a form (mforward) that allows the user to enter anything from and including 1 to 3 to show months in adavnce for a report.
The date variables are:
Code:
STORE CTOD(" / / ") TO mdatefrom, mdateto, mdatenext, mdateto
To increase these dates I use:
Code:
STORE GOMONTH(mdatefrom,mforward) TO mnextfrom
STORE GOMONTH(mdateto,mforward) TO mnextto
(The following are British dates)
This is ok for example with 01/01/2007 to 31/03/2007 which increases to 01/04/2007 to 30/04/2007 for 1 month or 01/05/2007 to 31/05/2007 which increases to 01/06/2007 to 30/06/2007.
However, when you use 01/02/2008 to 28/02/2007 and increase this by one month you get 01/03/2007 to 28/03/2007 when infact the latter date should 31/03/2007.
Is this a bug or something that can be written in to rectify the issue?
Thank you
Lee