Thanks all of you. This is what I've done.

<CFSET putDate = DateFormat(Now(), "d")>
<CFSET variables.i = DateFormat(Now(), "d")>
<CFIF variables.i IS 1 OR (LEN(variables.i) GTE 2 AND RIGHT(variables.i,1) EQ 1 AND RIGHT(variables.i,2) NEQ 11)>
    <CFOUTPUT>#DateFormat(Now(), "dddd, mmmm d")#st,#DateFormat(Now(), "yyyy")#</CFOUTPUT>
<CFELSEIF variables.i IS 2  OR (Len(variables.i) GTE 2 AND Right(variables.i, 1) EQ 2 AND Right(variables.i, 2) NEQ 12) >
    <CFOUTPUT>#DateFormat(Now(), "dddd, mmmm d")#nd,#DateFormat(Now(), "yyyy")#</CFOUTPUT>
<CFELSEIF variables.i IS 3 OR (Len(variables.i) GTE 2 AND Right(variables.i, 1) EQ 3 AND Right(variables.i, 2) NEQ 13)>
    <CFOUTPUT>#DateFormat(Now(), "dddd, mmmm d")#rd,#DateFormat(Now(), "yyyy")#</CFOUTPUT>
<CFELSE>
    <CFOUTPUT>#DateFormat(Now(), "dddd, mmmm d")#th,#DateFormat(Now(), "yyyy")#</CFOUTPUT>
</CFIF>

probably someone already answer it before.

Thanks
Asim

>Grr. Right again. Well... the idea is the same for all of them. I'll let
>Asim figure out the details. =)
>
>-Jordan
>
>
>
>Scott Brady wrote:
>
>>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to