HOME | SERVICES | CONTACT | PORTFOLIO | MUSIC

Coldfusion Countdown

Ok. Could'nt end the week being totally worthless..

Here is a nice simple way to "Count-down" from now to a specific date using coldfusion.


<cfoutput>
#DateDiff("d", Now(), CreateDate(2007,2,25))# days til my Birth day.<br>
</cfoutput>
The "d" means days, "Now()" means get the date right now. The "CreateDate" takes the information inside the "()" and makes it a date using the format year/month/day.

To output just enclose it inside "# #" and between a cfoutput tag. Add the appropriate text... like my birth day...

Related Blog Entries

Comments (Comment Moderation is enabled. Your comment will not appear until approved.)
Content Copyright © 2005 Owen Consulting - All Rights Reserved | This Blog Powered by BlogCFC version 5.9.1.002.