Hey guys,
Sorry the above is a little vague it's rather hard to word. I've got a simple CFIF statement in my code to set datesup to be either "st", "nd", "rd" or "th" as appropriate.However, when the code is run, it just sets datesup to be "st" and nothing else.
Code is below.
#DATEFORMAT(date, "dddd")# the #DATEFORMAT(date, "dd")#
<cfset dateday = #DATEFORMAT(date,"dd")#>
<cfif dateday eq 01 OR 21 OR 31>
<cfset datesup = "st">
<cfelseif dateday IS 01 OR 11>
<cfset datesup = "nd">
<cfelseif dateday IS 03 OR 23>
<cfset datesup = "rd">
<cfelse>
<cfset daatesup = "th">
</cfif>
#datesup# of #DATEFORMAT(date, "mmmm, yyyy")#
Any ideas?
Thanks for the help and sorry again if I've been too vague.
Jake