How do I add 2 years to a date in powerbuilder and account for the leap year correctly?
- by Judy
How do I add 2 years to a date in powerbuilder and account for the leap year correctly?
We have a medical license application where the user would like the date to go expire two years. Current license date is 7/10/2010 and expire date should be 7/2/2012 I used relative date and added 729 if not a leap year and 730 if it was but that is messy.
I wish the relativedate function took another parameter to so you could pass in number years.