-----Original Message-----
  From: Philip Arnold [mailto:[EMAIL PROTECTED]
  Sent: Monday, January 05, 2004 6:43 AM
  To: CF-Talk
  Subject: RE: Invalid Date Format?

  I think the problem you're encountering is that DaysInMonth() expects a
  complete date, and you're only passing it "02-05" which it is
  mis-interpretting

  Try changing it to DaysInMonth(CreateDate(form.Year, form.Month, 1)) and
  see if that works

  > -----Original Message-----
  > From: DeMarco, Alex [mailto:[EMAIL PROTECTED]
  > Sent: Monday, January 05, 2004 8:34 AM
  > To: CF-Talk
  > Subject: Invalid Date Format?
  >
  >
  > All of the sudden we started getting these errors:
  >
  > "02-29-05" is an invalid date format.  <br>The error
  > occurred on line 142.
  >
  > There are only 28 day's in 05..
  >
  > Here is the code I am using :
  > <CFIF #ValueToMod# mod 10 is Checksum AND
  > #DateCompare('#form.Month#-#DaysInMonth('#form.month#-#form.ye
  > ar#')#-#fo
  > rm.Year#', #now()#)# is TRUE>
  >
  > This has worked fine for years...  Is this a CF bug?
  >
  > - Alex
  >
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to