> No, what I need is for example, when if a user selects
> 2 years (from the years dropdown box) 2 months ( 2 days
> from the months dropdown box) and 2 days (from the days
> dropdown box then I need to convert those values to days
> and add them up. Then that added value will be used with
> another dropdown that the user selects from (1-90)to
> determine how many days they have left until their
> certificate expires. Any suggestions?? Sorry if this is
> confusing
I'm not sure what you're asking on the second part, but if you're asking
for a time period and need to convert that to a date...
<cfscript>
targetDate = dateAdd("yyyy", url.numYears, now());
targetDate = dateAdd("m", url.numMonths, targetDate);
targetDate = dateAdd("d", url.numDays, targetDate);
</cfscript>
<cfoutput>#targetDate#</cfoutput>
I'm not sure what you're talking about with the 1-90 selection though.
-Justin Scott - blog: http://www.tlson.com/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311939
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4