Quantcast
Channel: Adobe Community: Message List - ColdFusion
Viewing all articles
Browse latest Browse all 21760

Re: Pass variable in Dateadd() function

$
0
0

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())>


Viewing all articles
Browse latest Browse all 21760

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>