guess that makes sense... either way, what I posted swaps the day and moth and changes your orginal output to August dates. I THINK that is what you wanted. I'm not getting into the inner workings of CF and its why's and how's because I only got 118 from the IQ discussion : )

  ----- Original Message -----
  From: Claude Schneegans
  To: CF-Talk
  Sent: Tuesday, August 24, 2004 9:31 PM
  Subject: Re: Date format issues

  >>This will make date1 and date2 actual dates rather than a normal string to CF.

  No, never.
  The function dateformat expects a date as first parameter, not a string, and "02/08/2004" is a not a date, it is a string.
  A date in CF is represented internally by a number.
  Even if the function iDate("02/08/2004") says "yes", don't be confused. These "type detection" functions in a language like CF which is typeless is just a joke. It does not return "yes or no this is a date", but "Yes or no I could make this a date if you want it to be a date".

  Only true dates should be passed to dateformat, like for instance
  dateFormat (now(),... or
  dateFormat (createDate(...),...
  etc.
  --
  _______________________________________
  REUSE CODE! Use custom tags;
  See http://www.contentbox.com/claude/customtags/tagstore.cfm
  (Please send any spam to this address: [EMAIL PROTECTED])
  Thanks.
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to