Quantcast
Channel: Adobe Community : All Content - ColdFusion
Viewing all articles
Browse latest Browse all 5979

How can I determine if the current date is between two dates?

$
0
0

I am trying to display a link when the current date falls between two dates. I have setup the startdate and the enddate.When the current date falls between the startdate an the enddate, the link will apear. Both startdate and enddate have already been formatted earlier as mm/dd/yyyyy. I tried using the following script, to no avail. What am I doing wrong?

 

<cfif startDate GTE #dateformat(now(), 'MM/DD/YYYY')# AND enddate LTE #dateformat(now(), 'MM/DD/YYYY')#>


Viewing all articles
Browse latest Browse all 5979

Trending Articles



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