Is anyone playing with user defined functions? I can not find any doc's on
the subject in cfdocs or in studio. I wander if there is a way to do what I
am trying below

<CFSCRIPT>
function mydate(){
 if (arguments is "")
  d = now();
  else
  d = arguments[1];

 return DateFormat(d);
}
</CFSCRIPT>

<CFOUTPUT>#mydate("01/01/2001")#</CFOUTPUT>


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to