Hi Peter,
I just set all my TO parameters to strings. I usually do the conversion
from date to string and vice-versa in my DAO. CF is pretty forgiving
about changing strings into dates so it isn't much of a problem. I hope
someone on the list has better solution for you. (and me).
Tom Young
Peter Hardy wrote:
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]