this gives 21th!. Might be better to set up struct or array.
  -----Original Message-----
  From: Jordan Michaels [mailto:[EMAIL PROTECTED]
  Sent: Monday, July 05, 2004 12:23
  To: CF-Talk
  Subject: Re: DateFormat

  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>

  --
  Warm regards,
  Jordan Michaels
  Vivio Technologies
  http://www.viviotech.net/
  [EMAIL PROTECTED]

  Asim Manzur wrote:

  > #DateFormat(NOW(),"dddd, mmmm d, yyyy")#
  >
  > the above format display the date
  > Monday, July 5, 2004
  >
  > I want to display like
  > Monday, July 5th, 2004
  >
  > thanks
  > Asim
  >
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to