So, have you guys missed me? Somehow I got unzubzcribed a few weeks ago. I'm just now getting back on. Hope I didn't miss any good political discussions!
So the administrator of a server sent me the following ASP code to suggest I construct some dynamic links to a stats report: <%dMonth = Month(Now) if dMonth < 10 then dMonth = "0" & dMonth dYear = Right(Year(Now),2)%> <a href="/stats/<%=dYear & dMonth%>.htm>Click here for this month's stats<a> I couldn't help but respond with the following: <a href="/stats/#dateformat(now(), "yymm")#.htm">Click here for this month's stats</a> Four lines of code reduced to 1! (not counting cfoutput) :-) (if I only wanted to make the current month available). H. <-- who thinks CF Rocks! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Get the mailserver that powers this list at http://www.coolfusion.com Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
