Hello;
I am trying to have an Event Date disappear 1 day after the event date by CFIF.
Here is the code but nothing is appearing. Note, the query works fine if I omit the CFIF but it shows all the events past and present.
------------------------------
CODE
------------------------------
<cfif #now()# lte DateFormat(#EarCandy.GigDate#, 'ddd, mmmm dd, yyyy')>
<cfoutput query="EarCandy">
#DateFormat(GigDate, 'ddd, mmmm dd, yyyy')#<br>
<cfif #trim(BandURL)# IS NOT ""><a href=" target="_blank">#BandName#</a><cfelse>#BandName#</cfif><br>
<cfif STYLE IS NOT "">#Style#<br><CFELSE></CFIF>
<cfif #trim(VenueURL)# IS NOT ""><a href=" target="_blank">#VenueName#</a><cfelse>#VenueName#</cfif><br>
#VenueCity#, #VenueState#<br>
<cfif STYLE IS NOT "">#VenuePhone#<br><CFELSE></CFIF>
#EarCatName#<br>
<br><br>
</cfoutput>
</CFIF>
-------------------------------
CODE
-------------------------------
Thanks,
Eric
I am trying to have an Event Date disappear 1 day after the event date by CFIF.
Here is the code but nothing is appearing. Note, the query works fine if I omit the CFIF but it shows all the events past and present.
------------------------------
CODE
------------------------------
<cfif #now()# lte DateFormat(#EarCandy.GigDate#, 'ddd, mmmm dd, yyyy')>
<cfoutput query="EarCandy">
#DateFormat(GigDate, 'ddd, mmmm dd, yyyy')#<br>
<cfif #trim(BandURL)# IS NOT ""><a href=" target="_blank">#BandName#</a><cfelse>#BandName#</cfif><br>
<cfif STYLE IS NOT "">#Style#<br><CFELSE></CFIF>
<cfif #trim(VenueURL)# IS NOT ""><a href=" target="_blank">#VenueName#</a><cfelse>#VenueName#</cfif><br>
#VenueCity#, #VenueState#<br>
<cfif STYLE IS NOT "">#VenuePhone#<br><CFELSE></CFIF>
#EarCatName#<br>
<br><br>
</cfoutput>
</CFIF>
-------------------------------
CODE
-------------------------------
Thanks,
Eric