Yes
<cfset txt_expiration = 180>
<cfset yearAhead = DateAdd("d", txt_expiration, now())>
This works. But in my case i am calling txt_expiration value from a sql query through js script as follows
<SCRIPT>
<cfwddx action="cfml2js" input="#qry_category#" topLevelVariable="qj">
function fnselectcat()
{
if(qj.getField(i,"cat_id") == document.frm.sel_category.value)
{
document.frm.txt_expiration.value = qj.getField(i,"CAT_EXPIRATION");
}
}
</SCRIPT>
how to fetch the "txt_expiration" value from script and pass it into the date funtion ??