Err. . . that was supposed to be 1900 in the function ;)
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Roland Collins
Sent: Wednesday, May 26, 2004 5:39 PM
To: [EMAIL PROTECTED]
Subject: RE: [CFCDev] cffunction returntype="date"
We employ a "bogus date cheat" method here as well. Basically, we chose
1/1/1900 as our bogus date. Anywhere we need to check for a null date we
have to use this function:
function IEGetDate(dt) {
if (DateCompare(dt, "1/1/1901") IS 0)
return "";
else
return dt;
}
Tons of fun :(
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Scott Jibben
Sent: Wednesday, May 26, 2004 5:09 PM
To: [EMAIL PROTECTED]
Subject: RE: [CFCDev] cffunction returntype="date"
That's sort of a drag. I have several date fields in the database and most
of them can all be null/empty. I guess I can't even use type="date" on the
setter <cfargument> tag because I may want to set the field to NULL.
The other option is to return a bogus date that the code understands to
represent NULL.
I was hoping that I missed something before taking the steps necessary to
rework the code.
BTW, I also found out that you can't name a cffunction 'GetPassword' because
of a conflict with a Java function with the same name. Is there a list
somewhere of 'reserved' function names that should be avoided?
TIA,
sj
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of Bryan F. Hogan
> Sent: Wednesday, May 26, 2004 3:42 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [CFCDev] cffunction returntype="date"
>
> If I'm not mistaken it can't be a date object if it is null. I would
> suggest converting it to a string. Or I think there is a way to create
> your own returntype by creating a cfc for it. I've never been able to
> get it to work though.
>
> Scott Jibben wrote:
>
> > Is there a way to return an
> > empty date value with returntype="date" or will I have to change to
> > returntype="string"?
> ----------------------------------------------------------
> You are subscribed to cfcdev. To unsubscribe, send an email
> to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev'
> in the message of the email.
>
> CFCDev is run by CFCZone (www.cfczone.org) and supported
> by Mindtool, Corporation (www.mindtool.com).
>
> An archive of the CFCDev list is available at www.mail-
> archive.com/[EMAIL PROTECTED]
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev'
in the message of the email.
CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).
An archive of the CFCDev list is available at
www.mail-archive.com/[EMAIL PROTECTED]
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev'
in the message of the email.
CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).
An archive of the CFCDev list is available at
www.mail-archive.com/[EMAIL PROTECTED]
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev'
in the message of the email.
CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).
An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED]