Can you post the code?

[EMAIL PROTECTED] wrote on 30/11/2004 09:41:19 AM:

> Hmmmm.. thanks Darryl.  I thought I was pretty familiar with CFMX now,
> but that's a function I had never noticed before.
> 
> I used ParseDateTime() on the string and got {ts '2004-11-30
> 10:28:00'} .  I reckon that's a date.  And I reckon it's in valid ODBC
> format.  But no, I still get the following error:
> 
> [quote]
> The value "Tue, 30 Nov 2004 10:28:00 GMT+11:00" could not be converted
> to a date.
> [/quote]
> 
> This happens inside the IsDate function.  I'd have thought the purpose
> of the IsDate function was to check if the content was a date or not. 
> If it's not,  isnt that what the function is supposed to be for?  Why
> doesnt it just return false instead of throwing an error?
> 
> Cheers
> Mike Kear
> Windsor, NSW, Australia
> AFP Webworks
> http://afpwebworks.com
> .com,.net,.org domains from AUD$20/Year
> 
> 
> 
> On Tue, 30 Nov 2004 09:15:28 +1000, Darryl Lyons
> <[EMAIL PROTECTED]> wrote:
> > Does the parsedatetime function help?
> > 
> > Darryl
> > 
> > [EMAIL PROTECTED] wrote on 30/11/2004 09:04:31 
AM:
> > 
> > 
> > 
> > > I'm using the function isDate() to determine if a string is a date,
> > > and if so, format it and output the result. If it's not a date 
object,
> > > then do nothing.
> > >
> > > Ok fine.  But when the RSS feed gives it the value "Tue, 30 Nov 2004
> > > 09:41:00 GMT+11:00" it throws an error.  The actual error is:
> > >
> > > [quote]
> > > The value "Tue, 30 Nov 2004 09:41:00 GMT+11:00" could not be 
converted
> > > to a date.
> > > [/quote]
> > >
> > > I thought that if this string couldn't be converted to a date, 
that's
> > > precisely what that function is for.    Apparently not.   So what
> > > exactly IS it for?   And how do I do what i need then?
> > >
> > > Here's the code in question:
> > >
> > > <cfif isdate(newsitem.pubdate.xmltext)>
> > >   #lcase(timeformat(newsitem.pubdate.xmltext, "h:mmtt"))#
> > > </cfif>
> > >
> > > So if the variable isnt a date (looks like one to me but lets not
> > > bother about that now) why doesnt this just skip over it and move 
on?
> > >  Why does it throw an error?
> > >
> > >
> 
> ---
> You are currently subscribed to cfaussie as: 
[EMAIL PROTECTED]
> To unsubscribe send a blank email to 
[EMAIL PROTECTED]
> Aussie Macromedia Developers: http://lists.daemon.com.au/



To unsubscribe from this email please forward this email to [EMAIL PROTECTED] 

This email message is confidential and may be privileged. If you are not the 
intended recipient
please forward the email to [EMAIL PROTECTED] and delete the original.
 
ABN AMRO Morgans Limited and its associates hold or may hold securities in the 
companies/trusts mentioned herein.
Any general advice included in this email has been prepared without taking into 
account your objectives, financial situation or needs.
Before acting on the advice, you should consider its appropriateness or discuss 
with one of our investment advisors.

ABN AMRO Morgans Limited (ABN 49 010 669 726 AFSL 235410) A Participant of ASX 
Group.
A principal member of the Financial Planning Association.


---
You are currently subscribed to cfaussie as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/

Reply via email to