Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CF Mail & AOL Date Error

Status
Not open for further replies.

ApexSys

Programmer
Jan 10, 2001
15
US
Does anyone have the fix for the Date problem when using CF mail and parsing a message sent from an AOL email address?

Evidently AOL formats their date in some non-standard way that gives the following error.
---------------------------------
The date parameter of function ParseDateTime(date), which is Wed, 18 Apr 2001 08:25:15 EDT, does not represent a valid date

Thanks,
-=-=-=-=-=-=-=-=-=-=-=-=-=-
Apex Systems Consulting
e-Solutions for Small Business
 
Are you having trouble with <cfmail> or parsing an e-mail retrieved via <cfpop>? I'm not familiar with a specific CF bug in regards to AOL mail.

GJ
 
GJ,
In a CFPOP results set... when you try to format the SMTP date field you get an error only with every AOL message. AOL may not be using what CF refers to as a &quot;US style&quot; date and time. I'm using ParseDateTime() on that date field and it blows up with AOL messages.

It's been documented, but I could not find a site which has the fix. Guess I dig into the Allaire knowledge base some more.

Thanks,
-=-=-=-=-=-=-=-=-=-=-=-=-=-
Apex Systems Consulting
e-Solutions for Small Business
 
I'm not familiar with any specific fixes for this but I would try running the date through #dateformat()# and see if it can handle it. If it does, you can either use dateformat to preprocess before running it through parsedate (assuming you need a date object). I'm assuming either lsparsedate() gives the same error or won't work since it doesn't have the &quot;pop&quot; attribute.

If neither of these will work, I think the Allaire KB will be your best bet.
GJ
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top