View Single Post
Old 07-14-2004, 08:04 PM   · #3
Prototype
Guest
 
Trader Rating: (1)
Join Date: Jul 2004
Posts: 22
NP$: 29.00 (Donate)
Prototype is an unknown quantity at this point
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:

Quote:
July 15, 2004



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:

Quote:
Friday July 2004



Enjoy!


Please register or log-in into NamePros to hide ads
Prototype is offline   Reply With Quote
Site Sponsors
Grow your forum! EscrowDNS Domain Tasting
Advertise your business at NamePros
All times are GMT -7. The time now is 11:39 AM.


Powered by: vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.