Yes it does work with the older versions.
Here is a continuation of Part I, now I will show how to modify the date to make it look the way you would like it to look.
Open up the same page now change the cfset parameter to this:
PHP Code:
<cfset date = DateFormat(now(), "mmmm d, yyyy")>
With this new function we have changed how the date will appear. Save the file and reload the page. Your result should look like this:
That is all there is to formating and displaying the date. You may format it in whatever order you wish. For example it can be yyyy-d-mmmm or however you decide it to be.
Here are all of the different possibilies that you may use:
"mmmm" -> Month
"yyyyy" -> Year
"dddd" -> Day of the week
"d" -> Date
So, the following output: dddd mmmm yyyy would result in:
Enjoy!