gokul1242 wrote:
i tried that....
No, you didn't. What you tried is equivalent to:
<cfset txt_expiration = "">
<cfset yearAhead = DateAdd("d", txt_expiration, now())>
You will find that the following does work:
<cfset txt_expiration = 180>
<cfset yearAhead = DateAdd("d", txt_expiration, now())>