No easy way to do this but here is 'a way':
<cfset thedate=" now()">
<cfset superscriptlist="stndrdthththththththththththththththththstndrdthththththththst">
<cfset superscript=" mid(superScriptList,(day(theDate)*2)-1,2)">
<cfoutput>#dateformat(theDate,'Mmmm d')#<sup>#superScript#</sup>, #dateformat(theDate,'yyyy')#</cfoutput>
Input: now() (in this case {ts '2010-03-11 00:00:00'} )
Output: March 11th, 2010
I don't know that I'd say that copying your code isn't easy.
ReplyDeleteI don't know that I'd say that copying your code isn't easy.
ReplyDelete