that worked thanks John. I guess the syntax in cf help is wrong
JT
  -----Original Message-----
  From: John Stanley [mailto:[EMAIL PROTECTED]
  Sent: Monday, January 19, 2004 9:07 AM
  To: CF-Talk
  Subject: RE: DateDiff

  You have to put the n in quotes, othewise it thinks the n is a variable
and
  not an argument.

  -----Original Message-----
  From: JT [mailto:[EMAIL PROTECTED]
  Sent: Monday, January 19, 2004 11:04 AM
  To: CF-Talk
  Subject: DateDiff

  why does this not work?

  <cfset date1="2004-01-19 08:00:02">
  <cfset date2="2004-01-19 09:04:08">
  <cfoutput>#Abs(DateDiff(n, date1, date2))#</cfoutput>
    _____
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to