|
-
Jul 21st, 2005, 12:21 AM
#1
Thread Starter
Lively Member
Date
hi,
i want to write a function that to generate the invoice by checking the singnup_date. for example: the singup_date = '15-01-2005' . the invoice will be generated on very 15th of the month. But the problems is if the day is fall on 29,30 and 31. and that month is feb, april, june, sept and nov., the invoice will not generated. So, to solve this problem, i want to write a function which on 1st of march, may, july, oct,and dec. will check for the previous month (feb, april, june, sept and nov) .
for example:
today date is 01/march 2005. the invoice will generated for the signup_date which the day is 29, 30 and 31.
if today date is 01/may 2005 , 01/july 2005 , 01/oct 2005 and 01/dec 2005, the invoice will be generated for the signup_date which the day is 31.
Please help in the coding.
Thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|