Hello i have a filed of duration $duration=9 now start date is $sdate=12/04/2001 when i add the $duration in this then expiry date should be $exdate=12/01/2002 this is possible by looong coding is there some one familar with any function for this . Thanks Hasu
you want to add months to a date?
see mktime, date, time and the functions around for date/time calculations.
i use mktime and other function all add a month but the problem is some thing like this
$sdate=22/7/2001 after addition of 7 months it should be #edate=22/2/2002
but using mktime and othe avaialbe function give the result 22/14/2001
any solution