Some will say use a string data type and return an empty string.  I don't much care for this option.
 
Others will say use a date date type and return a "null" date such as 1/1/1900.  Again, I don't much care for this option, either.
 
Still more others will say throw/catch an exception if this happens.
 
M!ke


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Peter Hardy
Sent: Tuesday, September 20, 2005 2:21 PM
To: [email protected]
Subject: [CFCDev] Default for Dates in a Transfer object

Hi guys,
 
I've seen this on the forum before but I'm can't remember the answer at all.
 
I've created a transfer object that takes amongst others a couple of date parameters. Trouble is, they are optional parameters so sometimes they are a valid date and sometimes they are equal to "". If my cfargument type to date cf just throws an exception.
 
How do I handle this? Shoudl I just store it as a string?
 
Cheers, Pete (aka lad4bear)
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to [email protected] with the words 'unsubscribe cfcdev' as the subject of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting (www.cfxhosting.com).

CFCDev is supported by New Atlanta, makers of BlueDragon
http://www.newatlanta.com/products/bluedragon/index.cfm

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' as the subject of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting (www.cfxhosting.com).

CFCDev is supported by New Atlanta, makers of BlueDragon
http://www.newatlanta.com/products/bluedragon/index.cfm

An archive of the CFCDev list is available at www.mail-archive.com/[email protected]

Reply via email to