Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / ColdFusion / Getting Started / November 2006



Tip: Looking for answers? Try searching our database.

printing day and month of date

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
svenwagener - 30 Nov 2006 12:28 GMT
Hello,

I'm an absloute cf newbe. I only need a little script which prints out a month
and the day of the month like this format:

[b]&actMonth=12&actDay=3[/b]

It would be great, if anybody can give me this little script. I only need the
output for a Flash application

Thank you!

Sven Wagener

flashsaver.org - create your http://www.flashsaver.org online!
Dan Bracuk - 30 Nov 2006 12:37 GMT
Look up the dateformat function in the cfml reference manual.  If you don't
have one, the internet does.

To find cold fusion functions on the internet google "coldfusion name of
function"  Note the coldfusion is one word.
Sankalan - 30 Nov 2006 19:35 GMT
I think DatePart() function is what you need.

<cfoutput>
  For month #DatePart("m", Now())#
  For Day #DatePart("d", Now)#
</cfoutput>

Thanks

Sankalan
(www.mindfiresolutions.com)
[CJ] - 30 Nov 2006 20:21 GMT
that'll work, but using the month() and day() functions would probably be more concise :)
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.