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:

> Original Message:
> > From: Jordan Michaels
>
> > I don't think there's a way to do that normally using the DateFormat()
> > function, but this will work:
> >
> > <CFSET variables.i = DateFormat(Now(), "d")>
> > <CFIF variables.i IS 1>
> >     <CFOUTPUT>#DateFormat(Now(), "dddd, mmmm
> d")#st,#DateFormat(Now(), "
> > yyyy")#</CFOUTPUT>
> > <CFELSEIF variables.i IS 2>
> >     <CFOUTPUT>#DateFormat(Now(), "dddd, mmmm
> d")#nd,#DateFormat(Now(), "
> > yyyy")#</CFOUTPUT>
> > <CFELSEIF variables.i IS 3>
> >     <CFOUTPUT>#DateFormat(Now(), "dddd, mmmm
> d")#rd,#DateFormat(Now(), "
> > yyyy")#</CFOUTPUT>
> > <CFELSE>
> >     <CFOUTPUT>#DateFormat(Now(), "dddd, mmmm
> d")#th,#DateFormat(Now(), "
> > yyyy")#</CFOUTPUT>
> > </CFIF>
>
> Actually, that won't quite do it. If I'm reading the code correctly,
> that will also generate July 21th, July 22th, July 23th, and July 31th.
>
> So, you'll need conditional code to also take those numbers into
> account. (Unfortunately, you can't just look at the last character in
> the numeric date, because 11, 12, and 13 work differently from 1, 2,
> and 3.)
>
> Scott
>
> ---------------------------
> Scott Brady
> http://www.scottbrady.net/
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to