I need to find Number of months after subtracting one date from other date,
Please find the requirement below
NUMBER OF MONTHS (MOAT_DT - TODAY())
I need the result of Number of Months after subtracting TODAY() date from MOAT_DT
Plesae suggest me regarding this.
Thanks in advance
vb
I need No of Months after subtracting one date from 2nd dat
Moderators: chulett, rschirm, roy
Can you describe the result you expect ?
I mean, if today is 2009-01-07 and previous date is 2008-12-06, do you expect 1 or 2 months ?
And if today is 2009-01-07 and previous date is 2008-12-08, do you expect 0 or 1 month ?
And so on...
Pierre.
I mean, if today is 2009-01-07 and previous date is 2008-12-06, do you expect 1 or 2 months ?
And if today is 2009-01-07 and previous date is 2008-12-08, do you expect 0 or 1 month ?
And so on...
Pierre.
Felix qui potuit rerum cognoscere causas. Virgile (Géorgiques).
-
- Participant
- Posts: 56
- Joined: Fri Sep 21, 2007 9:10 am
- Location: Bangalore
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Never re-invent the wheel where you don't need to. For example a set of date arithmetic functions can be had from here
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.