|
-
Dec 23rd, 2009, 11:24 PM
#1
Thread Starter
Addicted Member
[RESOLVED] Date + Date
Hi all,
Merry Christmas to you all.
I have a question 
Let's say I have a count like 20 Days or 1 Week or 2 Months.
I like to add these value to Today Date.
without chopping, checking and adding the value is there any way I can do it ?
Because now my user may choose 20 or 10 days, or 1 week or 2 weeks, or 3 months or 1 month. (even years!!)
And I need to add this value to Today. (This is a processing for Getting Expiry Date)
I'm kind of stuck here.
The only way I can think of is chopping out Date or Month or Year and plus the user key-in value to this. And re-calculate the value and display it on screen.
Its kind of messy.
So, any idea??
Thanks.
scsfdev
-----------------------------------------------
Merry Christmas and Happy New Year to you all.
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
|