View Single Post
Old Apr 26th, 2007, 5:55 PM   #1
Emperor
Newbie
 
Join Date: Apr 2005
Posts: 10
Rep Power: 0 Emperor is on a distinguished road
Question Adding to a date variable?

Hey guys, basically what I have is a date variable in the following format: mm/dd/yyyy and I'm trying to allow the user to add either days, months or years to this date by typing the following into a text box: 5 Days or 10 Months or 20 Years etc etc etc. Basically a number then a space then what they're adding(Days, Months, or Years).

I'm having trouble figuring out how to make it so it reads the number part and just takes that and adds it to a specified field in the date. Could anyone help me on this? Thanks.
Emperor is offline   Reply With Quote