Ok. Couldn’t end the week being totally worthless..
Here is a nice simple way to “Count-down” from now to a specific date using coldfusion.
#DateDiff("d", Now(), CreateDate(2007,2,25))# days til my Birth day.
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…
© 2006 – 2009, Robert Owen. All rights reserved.