Programming Tutorials Browser Tutorials Articles Struts Tutorials Hibernate Tutorials

  Tutorial: ColdFusion Date and Time CFTIME: How to Make Content Appear and Disappear Tutorial

Content on the web often has a shelf life. You may have information that you want up after a certain point in time or you may want it to be gone after a certain time.You may want to have it appear and disappear without having to be editing files or changi

Tutorial Details:

Content Appear and Disappear

Content on the web often has a shelf life. You may have information that you want up after a certain point in time or you may want it to be gone after a certain time.You may want to have it appear and disappear without having to be editing files or changing out input in some back end system. You will find that you can build a simple system for publishing and removing info with ColdFusion 's CFIF tag and CreateDateTime() and Now() functions.

CFIF is one of the most basic and commonly used tags in ColdFusion. We will use it to hide or display content based on comparing a set date to the time that the page is parsed for the visitor.

The CreateDateTime() function takes date and time parameters and creates a ColdFusion date/time object. The format is CreateDateTime(year,month, day, hour, minute, second).

The Now() function takes no parameters and produces a ColdFusion date/time object for the current date and time including seconds.


 

Read Tutorial at: Click here to view the tutorial

Rate Tutorial:
ColdFusion Date and Time CFTIME: How to Make Content Appear and Disappear Tutorial

View Tutorial:
ColdFusion Date and Time CFTIME: How to Make Content Appear and Disappear Tutorial

Related Tutorials:

Java Tip 85: Fun and games with JFileChooser - JavaWorld
Java Tip 85: Fun and games with JFileChooser - JavaWorld
 
Make room for JavaSpaces, Part 3 - JavaWorld March 2000
Make room for JavaSpaces, Part 3 - JavaWorld March 2000
 
Make a splash with Swing - JavaWorld Tip 104
Make a splash with Swing - JavaWorld Tip 104
 
Combine the power of XPath and JSP tag libraries - JavaWorld January 2001
Combine the power of XPath and JSP tag libraries - JavaWorld January 2001
 
Servlets in Apache Tomcat and BEA Systems' WebLogic Server - JavaWorld February 2001
Servlets in Apache Tomcat and BEA Systems' WebLogic Server - JavaWorld February 2001
 
Browse user interfaces for Jini services - JavaWorld March 2001
Browse user interfaces for Jini services - JavaWorld March 2001
 
Pushlets: Send events from servlets to DHTML client browsers
Pushlets: Send events from servlets to DHTML client browsers
 
Implement a J2EE-aware application console in Swing
Implement a J2EE-aware application console in Swing
 
XSLT blooms with Java
XSLT blooms with Java
 
Generate JavaBean classes dynamically with XSLT
Generate JavaBean classes dynamically with XSLT
 
Transform data into Web applications with Cocoon
Transform data into Web applications with Cocoon
 
Enhance your J2EE presentation layer
Enhance your J2EE presentation layer
 
Develop Java portlets
Develop Java portlets
 
Nice widget
Nice widget
 
Servlets and JavaServer Pages (JSP) : A Tutorial
An excellent tutorial on JSP and Servlets.
 
JSP Tutorial
This Tutorial is for beginners in the Java Server Pages Technology
 
Tutorial for Developing your first JSPs tags
We have seen how servlets and JSPs can be used to build a web application. These technologies go some distance toward making web development easier, but do not yet facilitate the separation of Java from HTML in a reusable way. Custom tags make this possib
 
Getting Started With Composite Capabilities/Preference Profiles and JSR 188
This article presents Composite Capabilities/Preference Profiles for designing content once. JSR 188 allows users to access the same application or content from any device, and be confident that it will work on that device, and will accommodate their pref
 
Device Driver Tutorial for the Solaris OS
Make your hardware work with the Solaris OS on x86 or SPARC architectures. If you are a beginning Solaris kernel programmer, start with this new tutorial on docs.sun.com.
 
JSP date example
JSP date example JSP Date Example Till now you learned about the JSP syntax, now I will show you how to create a simple dynamic JSP page that prints the current date and time. So the following code accomplish this: <%@page contentType="text/html"
 
Site navigation
 

 

Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.

Copyright © 2006. All rights reserved.